(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_id:Redir_Great fd:16777215 arg_word:{(KW_In in)} spids:[74]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {(DQ ('foo*\n') ('bar\n') ('Baz\n'))} do_expansion: True here_end: EOT was_filled: T spids: [78] ) ] ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id:Redir_Great fd:16777215 arg_word:{(expected)} spids:[92]) (HereDoc op_id: Redir_DLess fd: 16777215 body: { (DQ ('foo: 0\n') ('foo*: 1\n') ('bar: 1\n') ('foobar: 0\n') ('baz: 1\n') ('bar/qux: 0\n')) } do_expansion: True here_end: EOT was_filled: T spids: [96] ) ] ) (AndOr ops: [Op_DPipe] children: [ (SimpleCommand words: [ {(test-exclude)} {(-casefold)} {(KW_In in)} {(--)} {(foo)} {(SQ <'foo*'>)} {(bar)} {(foobar)} {(baz)} {(bar/qux)} ] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out)} spids:[129])] ) (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: [148 162] ) } arms: [ (case_arm pat_list: [{(SQ )}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\015'>)} spids:[170])] spids: [170] ) ] spids: [16777215 168 174 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:[179])] spids: [179] ) ] spids: [176 177 183 16777215] ) ] spids: [146 164 185] ) (AndOr ops: [Op_DAmp] children: [ (SimpleCommand words: [{(tr)} {(-d)} {(DQ ($ VSub_Name '$cr'))}] redirects: [ (Redir op_id:Redir_Less fd:16777215 arg_word:{(out)} spids:[202]) (Redir op_id:Redir_Great fd:16777215 arg_word:{(k)} spids:[206]) ] more_env: [(env_pair name:LC_ALL val:{(C)} spids:[191])] ) (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:[227])] spids: [227] ) ] ) (C {(Exit)} {($ VSub_Name '$fail')}) ] )