(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _abook 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.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.Binary op_id: Id.BoolBinary_eq left: {($ Id.VSub_DollarName '$cword')} right: {(1)} ) right: (bool_expr.Unary op_id: Id.BoolUnary_z child: {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) ) (command.BraceGroup children: [ (C {(compopt)} {(-o)} {(nospace)}) (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:66) words: [{(DQ (-))}] ) } spids: [65] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:75) arg_word: {(0)} ) ] ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$cur')} arms: [ (case_arm pat_list: [{(-) (Id.Lit_Star '*')}] action: [ (C {(_longopt)} {(abook)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:101) arg_word: {(0)} ) ] spids: [91 93 106 -1] ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(--informat)}] 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:125) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:127) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 134 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {($ Id.VSub_Number '$1')} {(--formats)} ) (C {(sed)} {(-n)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: 's/^' span_id: 150 ) ) (single_quoted left: (Token id: Id.Left_SingleQuoteC val: "$'" span_id: 152 ) tokens: [ (Token id: Id.Char_OneChar val: '\\t' span_id: 153 ) ] ) (SQ (Token id:Id.Lit_Chars val:'\\([a-z]*\\).*/\\1/p' span_id:156)) } {(-e)} {(SQ (Token id:Id.Lit_Chars val:'/^$/q' span_id:162))} ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [124] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:178) arg_word: {(0)} ) ] spids: [120 121 183 -1] ) (case_arm pat_list: [{(--outformat)}] 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:191) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:193) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 200 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {($ Id.VSub_Number '$1')} {(--formats)} ) (C {(sed)} {(-n)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: '/^$/,$s/^' span_id: 216 ) ) (single_quoted left: (Token id: Id.Left_SingleQuoteC val: "$'" span_id: 218 ) tokens: [ (Token id: Id.Char_OneChar val: '\\t' span_id: 219 ) ] ) (SQ (Token id:Id.Lit_Chars val:'\\([a-z]*\\).*/\\1/p' span_id:222)) } ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [190] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:238) arg_word: {(0)} ) ] spids: [186 187 243 -1] ) (case_arm pat_list: [{(--infile)}] 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:251) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:253) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(stdin)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [250] ) ] ) (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:275) arg_word: {(0)} ) ] spids: [246 247 280 -1] ) (case_arm pat_list: [{(--outfile)}] 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:288) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:290) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(stdout)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [287] ) ] ) (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:312) arg_word: {(0)} ) ] spids: [283 284 317 -1] ) (case_arm pat_list: [{(--config)} {(--datafile)}] action: [ (C {(_filedir)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:329) arg_word: {(0)} ) ] spids: [320 323 334 -1] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_abook)} {(abook)}) ] )