(command.CommandList children: [ (command.CommandList children: [ (command.Sentence child: (C {<.>} { (DQ (braced_var_sub token: <Id.VSub_Name srcdir> suffix_op: (suffix_op.Unary tok:<Id.VTest_Equals '='> arg_word:{<.>}) ) <'/tests/init.sh'> ) } ) terminator: <Id.Op_Semi _> ) (C {<path_prepend_>} {<'./src'>}) ] ) (C {<print_ver_>} {<mv>}) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<mkdir>} {<a>} {<b>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<echo>} {<foo>}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'a/foo'>})] do_fork: T ) (C {<framework_failure_>}) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<ln>} {<'a/foo'>} {<'a/bar'>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<echo>} {<FUBAR>}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'b/FUBAR'>})] do_fork: T ) (C {<framework_failure_>}) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<ln>} {<'b/FUBAR'>} {<'b/bar'>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [(C {<chmod>} {<a-w>} {<'b/bar'>}) (C {<framework_failure_>})] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<echo>} {<n>}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<no>})] do_fork: T ) (C {<framework_failure_>}) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<mv>} {<'a/bar'>} {<'a/foo'>} {<b>}] redirects: [ (redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<no>}) (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<out>}) (redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<err>}) ] do_fork: T ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [165] ) ] ) ] ) (C {<touch>} {<exp>}) (C {<touch>} {<exp_err>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<compare>} {<exp>} {<out>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [185] ) ] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<compare>} {<exp_err>} {<err>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [196] ) ] ) ] ) (command.Case to_match: {(DQ (command_sub left_token:<Id.Left_DollarParen '$('> child:(C {<cat>} {<'b/foo'>})))} arms: [ (case_arm pat_list:[{<foo>}] spids:[213 214 216 -1]) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:fail) op: assign_op.Equal rhs: {<1>} spids: [222] ) ] ) ] spids: [219 220 224 -1] ) ] ) (C {<Exit>} {($ Id.VSub_DollarName '$fail')}) ] )