(command.CommandList children: [ (command.Assignment keyword: Assign_Declare flags: [-a] pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:tools) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ {(currency)} {(stocks)} {(weather)} {(crypt)} {(movies)} {(taste)} {(short)} {(geo)} {(cheat)} {(ytview)} {(cloudup)} {(qrify)} ] ) } ) ] ) (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:all) op:Equal rhs:{(DQ (1))})] ) (command.FuncDef name: askUninstall body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_f child: {(/usr/local/bin/) ($ VSub_Number '$1')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(-n)} {(DQ ('Do you wish to uninstall ') ($ VSub_Number '$1') (' [Y/n]: '))} ) (C {(read)} {(-r)} {(answer)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$answer'))} right: {(DQ (Y))} ) right: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$answer'))} right: {(DQ (y))} ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(cd)} {($ VSub_Number '$1')}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) (C {(echo)} {(-n)} {(DQ ('Removing ') ($ VSub_Number '$1') (': '))}) (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [{(rm)} {(-f)} {(/usr/local/bin/) ($ VSub_Number '$1')}] redirects: [ (redir.Redir op: <Redir_Great '>'> fd: 16777215 arg_word: {(/dev/null)} ) (redir.Redir op: <Redir_GreatAnd '2>&'> fd: 2 arg_word: {(1)} ) ] ) (command.BraceGroup children: [ (command.Sentence child: (C {(echo)} {(DQ (Failed))}) terminator: <Op_Semi ';'> ) (command.Sentence child: (C {(echo)} { (DQ ( 'Error removing file, try running uninstall script as sudo' ) ) } ) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) terminator: <Op_Semi ';'> ) ] ) ] ) (C {(echo)} {(DQ (Success))}) (command.AndOr ops: [Op_DPipe] children: [ (C {(cd)} {(..)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(1)} ) ] ) ] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [(assign_pair lhs:(lhs_expr.LhsName name:all) op:Equal rhs:{(DQ (0))})] ) ] ) (C {(unset)} {(answer)}) ] ) ] ) ] ) ) (command.FuncDef name: removeManpage body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [{(rm)} {(-f)} {(/usr/local/man/man1/bash-snippets.1)}] redirects: [(redir.Redir op:<Redir_GreatAnd '2>&'> fd:2 arg_word:{(1)})] ) (command.BraceGroup children: [ (command.Sentence child: (C {(echo)} {(DQ (Failed))}) terminator: <Op_Semi ';'> ) (command.Sentence child: (C {(echo)} {(DQ ('Error removing file, try running uninstall script as sudo'))}) terminator: <Op_Semi ';'> ) (command.Sentence child: (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) terminator: <Op_Semi ';'> ) ] ) ] ) ] ) ) (command.ForEach iter_name: tool iter_words: [ { (DQ (word_part.BracedVarSub token: <VSub_Name tools> bracket_op: (bracket_op.WholeArray op_id:Lit_At) ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.AndOr ops: [Op_DPipe] children: [ (C {(askUninstall)} {($ VSub_DollarName '$tool')}) (command.ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$all')} right: {(DQ (1))} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (C {(removeManpage)}) (command.ControlFlow token: <ControlFlow_Exit exit> arg_word: {(1)} ) ] ) terminator: <Op_Semi ';'> ) ] ) ] ) ] )