(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _complete body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:26) ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-o)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:42) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:44) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'bashdefault default dirnames filenames\n' span_id: 51 ) (Token id:Id.Lit_Chars val:' nospace plusdirs' span_id:52) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [41] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:66) arg_word: {(0)} ) ] spids: [37 38 71 -1] ) (case_arm pat_list: [{(-A)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:80) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:82) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'alias arrayvar binding builtin command\n' span_id: 89 ) (Token id: Id.Lit_Chars val: ' directory disabled enabled export file function group helptopic\n' span_id: 90 ) (Token id: Id.Lit_Chars val: ' hostname job keyword running service setopt shopt signal\n' span_id: 91 ) (Token id:Id.Lit_Chars val:' stopped user variable' span_id:92) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [79] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:106) arg_word: {(0)} ) ] spids: [75 76 111 -1] ) (case_arm pat_list: [{(-C)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:120) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:122) command_list: (command.CommandList children: [ (C {(compgen)} {(-A)} {(command)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [119] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:141) arg_word: {(0)} ) ] spids: [115 116 146 -1] ) (case_arm pat_list: [{(-F)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:154) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:156) command_list: (command.CommandList children: [ (C {(compgen)} {(-A)} {(Id.KW_Function function)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [153] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:175) arg_word: {(0)} ) ] spids: [149 150 180 -1] ) (case_arm pat_list: [{(-p)} {(-r)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:190) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:192) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {(complete)} {(-p)}) (C {(sed)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: 's|.* ||' span_id: 205 ) ) } ) ] negated: F ) ] ) ) } ] ) } spids: [189] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:214) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:216) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '${COMPREPLY[@]}' span_id: 223 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [213] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:237) arg_word: {(0)} ) ] spids: [183 186 242 -1] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {(-) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:264) ) ] action: [ (C {(local)} {(Id.Lit_VarLike 'opts=') (DQ ('-a -b -c -d -e -f -g -j -k -o -s -u -v -A -G -W -P -S -X')) } ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_Number '$1')} right: {(compgen)} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:opts) op: assign_op.PlusEqual rhs: {(DQ (' -F -C'))} spids: [293] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:300) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:302) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ($ Id.VSub_DollarName '$opts'))} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [299] ) ] ) ] spids: [250 266] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:327) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:329) command_list: (command.CommandList children: [ (C {(compgen)} {(-A)} {(command)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [326] ) ] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_complete)} {(compgen)} {(complete)}) ] )