(CommandList children: [ (CommandList children: [ (Sentence child: (C {(.)} { (DQ (BracedVarSub token: <VSub_Name srcdir> suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)}) spids: [55 59] ) (/init.sh) ) } ) terminator: <Op_Semi ';'> ) (C {(path_prepend_)} {(.)}) ] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(0)} spids:[68])] spids: [68] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(KW_In in)}) (HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOT)} here_end_span_id: 89 stdin_parts: [('foo*\n') ('bar\n') ('Baz\n')] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)}) (HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOT)} here_end_span_id: 102 stdin_parts: [('foobar: 1\n')] ) ] ) (AndOr ops: [Op_DPipe] children: [ (SimpleCommand words: [{(test-exclude)} {(-wildcards)} {(KW_In in)} {(--)} {(foobar)}] redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(out)})] ) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{($ VSub_QMark '$?')}) ] ) (Case to_match: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [(C {(echo)} {(r)}) (C {(tr)} {(-d)} {(SQ <'\\r'>)})] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [133 147] ) } arms: [ (case_arm pat_list: [{(SQ )}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\015'>)} spids:[155])] spids: [155] ) ] spids: [151 153 159 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\r'>)} spids:[164])] spids: [164] ) ] spids: [161 162 168 16777215] ) ] spids: [131 149 170] ) (AndOr ops: [Op_DAmp] children: [ (SimpleCommand words: [{(tr)} {(-d)} {(DQ ($ VSub_Name '$cr'))}] redirects: [ (Redir op:<Redir_Less '<'> fd:16777215 arg_word:{(out)}) (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(k)}) ] more_env: [(env_pair name:LC_ALL val:{(C)} spids:[176])] ) (C {(mv)} {(k)} {(out)}) ] ) (AndOr ops: [Op_DPipe] children: [ (C {(compare)} {(expected)} {(out)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[212])] spids: [212] ) ] ) (C {(Exit)} {($ VSub_Name '$fail')}) ] )