(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _patch body: (command.BraceGroup children: [ (C {<local>} {<cur>} {<prev>} {<words>} {<cword>} {<split>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_init_completion>} {<-s>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [ {<-p>} {<--strip>} {<-D>} {<--ifdef>} {<-B>} {<--prefix>} {<-Y>} {<--basename-prefix>} {<-z>} {<--suffix>} {<-g>} {<--get>} ] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [41 66 72 -1] ) (case_arm pat_list: [{<-F>} {<--fuzz>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'{0..3}'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [81] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [75 78 108 -1] ) (case_arm pat_list: [{<-i>} {<--input>}] action: [ (C {<_filedir>} {(SQ <'@(?(d)patch|dif?(f))'>)}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [111 114 127 -1] ) (case_arm pat_list: [{<-o>} {<--output>} {<-r>} {<--reject-file>}] action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.LogicalNot child: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$cur')}) ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {<->} ) ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: {(sh_array_literal left:<Id.Op_LParen _> words:[{<->}])} spids: [158] ) ] ) ] ) (C {<_filedir>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [130 137 172 -1] ) (case_arm pat_list: [{<--quoting-style>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'literal shell shell-always c escape'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [179] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [175 176 208 -1] ) (case_arm pat_list: [{<-V>} {<--version-control>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'simple numbered existing'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [217] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [211 214 244 -1] ) (case_arm pat_list: [{<-d>} {<--directory>}] action: [ (C {<_filedir>} {<-d>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [247 250 261 -1] ) (case_arm pat_list: [{<--reject-format>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'context unified'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [268] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [264 265 295 -1] ) (case_arm pat_list: [{<--read-only>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'ignore warn fail'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [302] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [298 299 329 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {<-> <Id.Lit_Other '*'>} ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'$( _parse_help "$1" )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [361] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {<Id.Lit_Other '*'> <Id.BoolBinary_GlobEqual '='>} ) ) (C {<compopt>} {<-o>} {<nospace>}) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [344 358] ) ] ) (C {<local>} {<args>}) (C {<_count_args>}) (command.Case to_match: {($ Id.VSub_DollarName '$args')} arms: [ (case_arm pat_list: [{<1>}] action: [(C {<_filedir>})] spids: [427 428 434 -1] ) (case_arm pat_list: [{<2>}] action: [(C {<_filedir>} {(SQ <'@(?(d)patch|dif?(f))'>)})] spids: [437 438 448 -1] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_patch>} {<patch>}) ] )