(CommandList children: [ (C {(test_tristate)} {(GIT_TEST_GIT_DAEMON)}) (If arms: [ (if_arm cond: [(C {(test)} {(DQ ($ VSub_Name '$GIT_TEST_GIT_DAEMON'))} {(Lit_Other '=')} {(false)})] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:skip_all) op: Equal rhs: {(DQ ('git-daemon testing disabled (unset GIT_TEST_GIT_DAEMON to enable)'))} spids: [71] ) ] spids: [71] ) (C {(test_done)}) ] spids: [16777215 68] ) ] spids: [16777215 79] ) (If arms: [ (if_arm cond: [(C {(test_have_prereq)} {(KW_Bang '!') (PIPE)})] action: [ (C {(test_skip_or_die)} {($ VSub_Name '$GIT_TEST_GIT_DAEMON')} {(DQ ('file system does not support FIFOs'))} ) ] spids: [16777215 89] ) ] spids: [16777215 100] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:LIB_GIT_DAEMON_PORT) op: Equal rhs: { (BracedVarSub token: <VSub_Name LIB_GIT_DAEMON_PORT> suffix_op: (StringUnary op_id: VTest_Hyphen arg_word: { (BracedVarSub token: <VSub_Name this_test> suffix_op: (StringUnary op_id:VOp1_Pound arg_word:{(t)}) spids: [107 111] ) } ) spids: [104 112] ) } spids: [103] ) ] spids: [103] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:GIT_DAEMON_PID) op:Equal rhs:{(EmptyPart)} spids:[115])] spids: [115] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GIT_DAEMON_DOCUMENT_ROOT_PATH) op: Equal rhs: {(DQ ($ VSub_Name '$PWD')) (/repo)} spids: [117] ) ] spids: [117] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GIT_DAEMON_URL) op: Equal rhs: {(git) (Lit_Other ':') (//127.0.0.1) (Lit_Other ':') ($ VSub_Name '$LIB_GIT_DAEMON_PORT')} spids: [123] ) ] spids: [123] ) (FuncDef name: start_git_daemon body: (BraceGroup children: [ (If arms: [ (if_arm cond: [(C {(test)} {(-n)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))})] action: [(C {(error)} {(DQ ('start_git_daemon already called'))})] spids: [16777215 149] ) ] spids: [16777215 159] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name '$GIT_DAEMON_DOCUMENT_ROOT_PATH'))}) (C {(trap)} {(SQ <'code=$?; stop_git_daemon; (exit $code); die'>)} {(EXIT)}) (SimpleCommand words: [{(say)} {(DQ ('Starting git daemon ...'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(3)} spids:[185])] ) (C {(mkfifo)} {(git_daemon_output)}) (Sentence child: (SimpleCommand words: [ {(git)} {(daemon)} {(--listen) (Lit_Other '=') (127.0.0.1)} {(--port) (Lit_Other '=') (DQ ($ VSub_Name '$LIB_GIT_DAEMON_PORT'))} {(--reuseaddr)} {(--verbose)} {(--base-path) (Lit_Other '=') (DQ ($ VSub_Name '$GIT_DAEMON_DOCUMENT_ROOT_PATH'))} {(DQ ($ VSub_At '$@'))} {(DQ ($ VSub_Name '$GIT_DAEMON_DOCUMENT_ROOT_PATH'))} ] redirects: [ (Redir op_id: Redir_GreatAnd fd: 16777215 arg_word: {(3)} spids: [238] ) (Redir op_id: Redir_Great fd: 2 arg_word: {(git_daemon_output)} spids: [241] ) ] ) terminator: <Op_Amp '&'> ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GIT_DAEMON_PID) op: Equal rhs: {($ VSub_Bang '$!')} spids: [247] ) ] spids: [247] ) (AndOr ops: [Op_DAmp] children: [ (BraceGroup children: [ (SimpleCommand words: [{(read)} {(line)}] redirects: [(Redir op_id:Redir_LessAnd fd:16777215 arg_word:{(7)} spids:[258])] ) (SimpleCommand words: [{(echo)} {(DQ ($ VSub_Name '$line'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(4)} spids:[264])] ) (Sentence child: (SimpleCommand words: [{(cat)}] redirects: [ (Redir op_id: Redir_LessAnd fd: 16777215 arg_word: {(7)} spids: [274] ) (Redir op_id: Redir_GreatAnd fd: 16777215 arg_word: {(4)} spids: [277] ) ] ) terminator: <Op_Amp '&'> ) ] redirects: [ (Redir op_id: Redir_Less fd: 7 arg_word: {(git_daemon_output)} spids: [285] ) ] spids: [251] ) (If arms: [ (if_arm cond: [ (C {(test)} {(x) (DQ (CommandSubPart command_list: (CommandList children: [ (C {(expr)} {(DQ ($ VSub_Name '$line'))} {(Lit_Other ':')} { (DQ (Lit_Other '\\') ('[[0-9]*') (Lit_Other '\\') ('] ') (Lit_Other '\\') ('(.*') (Lit_Other '\\') (')') ) } ) ] ) left_token: <Left_CommandSub '$('> spids: [302 321] ) ) } {(KW_Bang '!') (Lit_Other '=')} {(x) (DQ ('Ready to rumble'))} ) ] action: [ (C {(kill)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))}) (C {(wait)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))}) (C {(trap)} {(SQ <die>)} {(EXIT)}) (C {(test_skip_or_die)} {($ VSub_Name '$GIT_TEST_GIT_DAEMON')} {(DQ ('git daemon failed to start'))} ) ] spids: [16777215 333] ) ] spids: [16777215 370] ) ] ) ] spids: [135] ) spids: [131 134] ) (FuncDef name: stop_git_daemon body: (BraceGroup children: [ (If arms: [ (if_arm cond: [(C {(test)} {(-z)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))})] action: [(ControlFlow token:<ControlFlow_Return return>)] spids: [16777215 393] ) ] spids: [16777215 399] ) (C {(trap)} {(SQ <die>)} {(EXIT)}) (SimpleCommand words: [{(say)} {(DQ ('Stopping git daemon ...'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(3)} spids:[419])] ) (C {(kill)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))}) (SimpleCommand words: [{(wait)} {(DQ ($ VSub_Name '$GIT_DAEMON_PID'))}] redirects: [ (Redir op_id:Redir_GreatAnd fd:16777215 arg_word:{(3)} spids:[440]) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(4)} spids:[443]) ] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ret) op: Equal rhs: {($ VSub_QMark '$?')} spids: [447] ) ] spids: [447] ) (If arms: [ (if_arm cond: [(C {(test_match_signal)} {(15)} {($ VSub_QMark '$?')})] action: [(C {(error)} {(DQ ('git daemon exited with status: ') ($ VSub_Name '$ret'))})] spids: [16777215 460] ) ] spids: [16777215 471] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:GIT_DAEMON_PID) op: Equal rhs: {(EmptyPart)} spids: [474] ) ] spids: [474] ) (C {(rm)} {(-f)} {(git_daemon_output)}) ] spids: [379] ) spids: [375 378] ) ] )