(command.CommandList children: [ (C {(.)} {(git-sh-setup)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {(-d)} {(DQ ($ VSub_DollarName '$GIT_DIR')) (/remotes)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (command.SimpleCommand words: [{(echo)} {(DQ ('Rewriting ') ($ VSub_DollarName '$GIT_DIR') (/remotes))}] redirects: [(redir.Redir op:<Redir_GreatAnd '>&'> fd:16777215 arg_word:{(2)})] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:error spids:[42]) op: Equal rhs: {(0)} spids: [42] ) ] spids: [42] ) (command.Pipeline children: [ (command.BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_DollarName '$GIT_DIR')) (/remotes)}) (command.Pipeline children: [ (C {(ls)}) (command.WhileUntil keyword: <KW_While while> cond: [(command.Sentence child:(C {(read)} {(f)}) terminator:<Op_Semi ';'>)] body: (command.DoGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:name spids:[75]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(printf)} {(DQ ($ VSub_DollarName '$f'))}) (C {(tr)} {(-c)} {(DQ (A-Za-z0-9-))} {(DQ (.))}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [76 96] ) } spids: [75] ) ] spids: [75] ) (command.SimpleCommand words: [ {(sed)} {(-n)} {(-e)} { (DQ ('s/^URL:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') (')') (Lit_Other '$') (/remote.) ($ VSub_DollarName '$name') ('.url ') (Lit_Other '\\') ('1 ./p') ) } {(-e)} { (DQ ('s/^Pull:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') (')') (Lit_Other '$') (/remote.) ($ VSub_DollarName '$name') ('.fetch ') (Lit_Other '\\') ('1 ^') (Lit_Other '$') (' /p') ) } {(-e)} { (DQ ('s/^Push:[ \t]*') (Lit_Other '\\') ('(.*') (Lit_Other '\\') (')') (Lit_Other '$') (/remote.) ($ VSub_DollarName '$name') ('.push ') (Lit_Other '\\') ('1 ^') (Lit_Other '$') (' /p') ) } ] redirects: [ (redir.Redir op: <Redir_Less '<'> fd: 16777215 arg_word: {(DQ ($ VSub_DollarName '$f'))} ) ] ) ] spids: [72 170] ) ) ] negated: F ) (C {(echo)} {(KW_Done done)}) ] spids: [50] ) (command.WhileUntil keyword: <KW_While while> cond: [ (command.Sentence child: (C {(read)} {(key)} {(value)} {(regex)}) terminator: <Op_Semi ';'> ) ] body: (command.DoGroup children: [ (command.Case to_match: {($ VSub_DollarName '$key')} arms: [ (case_arm pat_list: [{(KW_Done done)}] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (C {(Lit_Other '[')} {($ VSub_DollarName '$error')} {(Lit_Other '=')} {(0)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(mv)} {(DQ ($ VSub_DollarName '$GIT_DIR')) (/remotes)} {(DQ ($ VSub_DollarName '$GIT_DIR')) (/remotes.old)} ) ] spids: [16777215 220] ) ] spids: [16777215 236] ) ] spids: [203 204 238 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (C {(echo)} {(DQ ('git config ') ($ VSub_DollarName '$key') (' ')) ($ VSub_DollarName '$value') (DQ (' ') ($ VSub_DollarName '$regex')) } ) (command.AndOr ops: [Op_DPipe] children: [ (C {(git)} {(config)} {($ VSub_DollarName '$key')} {(DQ ($ VSub_DollarName '$value'))} {($ VSub_DollarName '$regex')} ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:error spids:[273]) op: Equal rhs: {(1)} spids: [273] ) ] spids: [273] ) ] ) ] spids: [241 242 276 16777215] ) ] spids: [196 200 279] ) ] spids: [193 282] ) ) ] negated: F ) ] spids: [16777215 27] ) ] spids: [16777215 284] ) ] )