(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <cd_to_toplevel>)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./test-lib.sh)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:EXEC_PATH) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(git)} {(--exec-path)})]) left_token: <Left_CommandSub '$('> spids: [17 21] ) ) } spids: [15] ) ] spids: [15] ) (AndOr children: [ (C {(test_have_prereq)} {(KW_Bang '!') (MINGW)}) (Case to_match: {(DQ ($ VSub_Name '$EXEC_PATH'))} arms: [ (case_arm pat_list: [ {(Lit_Other '[') (A-Za-z) (Lit_Other ']') (Lit_Other ':') (/) (Lit_Other '*')} ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:EXEC_PATH) op: Equal rhs: { (DQ (/) (BracedVarSub token: <VSub_Name EXEC_PATH> suffix_op: (StringUnary op_id:VOp1_DPercent arg_word:{(':*')}) spids: [51 55] ) (BracedVarSub token: <VSub_Name EXEC_PATH> suffix_op: (StringUnary op_id:VOp1_Pound arg_word:{('?:')}) spids: [56 60] ) ) } spids: [48] ) ] spids: [48] ) ] spids: [39 45 64 16777215] ) ] spids: [31 37 66] ) ] op_id: Op_DPipe ) (FuncDef name: test_cd_to_toplevel body: (BraceGroup children: [ (C {(test_expect_success)} {($ VSub_Number '$3')} {(DQ ($ VSub_Number '$2'))} {(SQ <'\n'> <'\t\t(\n'> <'\t\t\tcd '>) (DQ ("'") ($ VSub_Number '$1') ("'")) (SQ <' &&\n'> <'\t\t\tPATH="$EXEC_PATH:$PATH" &&\n'> <'\t\t\t. git-sh-setup &&\n'> <'\t\t\tcd_to_toplevel &&\n'> <'\t\t\t[ "$(pwd -P)" = "$TOPLEVEL" ]\n'> <'\t\t)\n'> <'\t'> ) } ) ] spids: [74] ) spids: [69 73] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:TOPLEVEL) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children:[(C {(pwd)} {(-P)})]) left_token: <Left_CommandSub '$('> spids: [110 114] ) (/repo) ) } spids: [108] ) ] spids: [108] ) (C {(mkdir)} {(-p)} {(repo/sub/dir)}) (C {(mv)} {(.git)} {(repo/)}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:SUBDIRECTORY_OK) op:Equal rhs:{(1)} spids:[130])] spids: [130] ) (C {(test_cd_to_toplevel)} {(repo)} {(SQ <'at physical root'>)}) (C {(test_cd_to_toplevel)} {(repo/sub/dir)} {(SQ <'at physical subdir'>)}) (SimpleCommand words: [{(ln)} {(-s)} {(repo)} {(symrepo)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[160])] ) (C {(test_cd_to_toplevel)} {(symrepo)} {(SQ <'at symbolic root'>)} {(SYMLINKS)}) (SimpleCommand words: [{(ln)} {(-s)} {(repo/sub/dir)} {(subdir-link)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[182])] ) (C {(test_cd_to_toplevel)} {(subdir-link)} {(SQ <'at symbolic subdir'>)} {(SYMLINKS)}) (C {(cd)} {(repo)}) (SimpleCommand words: [{(ln)} {(-s)} {(sub/dir)} {(internal-link)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[208])] ) (C {(test_cd_to_toplevel)} {(internal-link)} {(SQ <'at internal symbolic subdir'>)} {(SYMLINKS)}) (C {(test_done)}) ] )