(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: 85 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: 107 stdin_parts: [ ('foo: 0\n') ('foo*: 1\n') ('bar: 1\n') ('foobar: 0\n') ('baz: 1\n') ('bar/qux: 0\n') ] ) ] ) (AndOr ops: [Op_DPipe] children: [ (SimpleCommand words: [ {(test-exclude)} {(-casefold)} {(KW_In in)} {(--)} {(foo)} {(SQ <'foo*'>)} {(bar)} {(foobar)} {(baz)} {(bar/qux)} ] 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: [150 164] ) } arms: [ (case_arm pat_list: [{(SQ )}] action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\015'>)} spids:[172])] spids: [172] ) ] spids: [168 170 176 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:[181])] spids: [181] ) ] spids: [178 179 185 16777215] ) ] spids: [148 166 187] ) (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:[193])] ) (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:[229])] spids: [229] ) ] ) (C {(Exit)} {($ VSub_Name '$fail')}) ] )