(command.CommandList children: [ (C {<declare>} {<-a>} {<Id.Lit_VarLike 'tools='> (sh_array_literal left: <Id.Op_LParen _> words: [ {<currency>} {<stocks>} {<weather>} {<crypt>} {<movies>} {<taste>} {<short>} {<geo>} {<cheat>} {<ytview>} {<cloudup>} {<qrify>} ] ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:all) op: assign_op.Equal rhs: {(DQ <1>)} spids: [37] ) ] ) (command.ShFunction name: askUninstall body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: {</usr/local/bin/> ($ Id.VSub_Number '$1')} ) ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<echo>} {<-n>} {(DQ <'Do you wish to uninstall '> ($ Id.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.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$answer'))} right: {(DQ <Y>)} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$answer'))} right: {(DQ <y>)} ) ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<cd>} {($ Id.VSub_Number '$1')}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] ) (C {<echo>} {<-n>} {(DQ <'Removing '> ($ Id.VSub_Number '$1') <': '>)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<rm>} {<-f>} {</usr/local/bin/> ($ Id.VSub_Number '$1')}] redirects: [ (redir.Redir op: <Id.Redir_Great '>'> fd: -1 arg_word: {</dev/null>} ) (redir.Redir op: <Id.Redir_GreatAnd '2>&'> fd: 2 arg_word: {<1>} ) ] ) (command.BraceGroup children: [ (command.Sentence child: (C {<echo>} {(DQ <Failed>)}) terminator: <Id.Op_Semi _> ) (command.Sentence child: (C {<echo>} { (DQ < 'Error removing file, try running uninstall script as sudo' > ) } ) terminator: <Id.Op_Semi _> ) (command.Sentence child: (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<1>} ) terminator: <Id.Op_Semi _> ) ] ) ] ) (C {<echo>} {(DQ <Success>)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<cd>} {<..>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] ) ] spids: [82 111] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:all) op: assign_op.Equal rhs: {(DQ <0>)} spids: [198] ) ] ) ] ) (C {<unset>} {<answer>}) ] spids: [50 61] ) ] ) ] ) ) (command.ShFunction name: removeManpage body: (command.BraceGroup children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<rm>} {<-f>} {</usr/local/man/man1/bash-snippets.1>}] redirects: [(redir.Redir op:<Id.Redir_GreatAnd '2>&'> fd:2 arg_word:{<1>})] ) (command.BraceGroup children: [ (command.Sentence child: (C {<echo>} {(DQ <Failed>)}) terminator: <Id.Op_Semi _> ) (command.Sentence child: (C {<echo>} {(DQ <'Error removing file, try running uninstall script as sudo'>)}) terminator: <Id.Op_Semi _> ) (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) terminator: <Id.Op_Semi _> ) ] ) ] ) ] ) ) (command.ForEach iter_name: tool iter_words: [ { (DQ (braced_var_sub token: <Id.VSub_Name tools> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<askUninstall>} {($ Id.VSub_DollarName '$tool')}) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$all')} right: {(DQ <1>)} ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.Sentence child: (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<removeManpage>}) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<1>} ) ] ) terminator: <Id.Op_Semi _> ) ] spids: [293 307] ) ] ) ] )