(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description spids:[12]) op: Equal rhs: {(SQ <'bisect can handle submodules'>)} spids: [12] ) ] spids: [12] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_Name '$TEST_DIRECTORY')) (/lib-submodule-update.sh)}) (command.FuncDef name: git_bisect body: (command.BraceGroup children: [ (command.AndOr ops: [ Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp ] children: [ (command.SimpleCommand words: [{(git)} {(status)} {(-su)}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})] ) (command.SimpleCommand words: [{(ls)} {(-1pR)} {(Lit_Other '*')}] redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(expect)})] ) (C {(tar)} {(cf)} {(DQ ($ VSub_Name '$TRASH_DIRECTORY') (/tmp.tar))} {(Lit_Other '*')}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:GOOD spids:[76]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(git)} {(rev-parse)} {(--verify)} {(HEAD)})] ) left_token: <Left_CommandSub '$('> spids: [77 85] ) } spids: [76] ) ] spids: [76] ) (C {(git)} {(checkout)} {(DQ ($ VSub_Number '$1'))}) (command.SimpleCommand words: [{(echo)} {(DQ (foo))}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(bar)})] ) (C {(git)} {(add)} {(bar)}) (C {(git)} {(commit)} {(-m)} {(DQ ('bisect bad'))}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:BAD spids:[135]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(git)} {(rev-parse)} {(--verify)} {(HEAD)})] ) left_token: <Left_CommandSub '$('> spids: [136 144] ) } spids: [135] ) ] spids: [135] ) (C {(git)} {(reset)} {(--hard)} {(HEAD) (Lit_Other '^') (Lit_Other '^')}) (C {(git)} {(submodule)} {(update)}) (C {(git)} {(bisect)} {(start)}) (C {(git)} {(bisect)} {(good)} {($ VSub_Name '$GOOD')}) (C {(rm)} {(-rf)} {(Lit_Other '*')}) (C {(tar)} {(xf)} {(DQ ($ VSub_Name '$TRASH_DIRECTORY') (/tmp.tar))}) (command.SimpleCommand words: [{(git)} {(status)} {(-su)}] redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(actual)})] ) (command.SimpleCommand words: [{(ls)} {(-1pR)} {(Lit_Other '*')}] redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(actual)})] ) (C {(test_cmp)} {(expect)} {(actual)}) (C {(git)} {(bisect)} {(bad)} {($ VSub_Name '$BAD')}) ] ) ] spids: [35] ) spids: [30 34] ) (C {(test_submodule_switch)} {(DQ (git_bisect))}) (C {(test_done)}) ] )