(command.CommandList children: [ (command.ShFunction name: _bind_queryclass body: (BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.PlusEqual rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-W>} {(SQ <'IN CH HS ANY'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [11] ) ] ) ] ) ) (command.ShFunction name: _bind_querytype body: (BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.PlusEqual rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-W>} { (SQ <'A AAAA AFSDB APL CERT CNAME DHCID DLV DNAME\n'> < ' DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR\n' > <' RRSIG RP SIG SOA SPF SRV SSHFP TXT'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [48] ) ] ) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _nslookup body: (BraceGroup children: [ (C {<local>} {<cur>} {<prev>} {<words>} {<cword>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_init_completion>} {<-n>} {<Id.Lit_Equals '='>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$cur')} arms: [ (case_arm pat_list: [ {<-class> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} {<-cl> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Pound '#'> arg_word: {<Id.Lit_Other '*'> <'='>} ) ) } spids: [123] ) ] ) (C {<_bind_queryclass>}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [113 120 138 -1] ) (case_arm pat_list: [ {<-querytype> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} {<-type> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} {<-q> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} {<-ty> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Pound '#'> arg_word: {<Id.Lit_Other '*'> <'='>} ) ) } spids: [159] ) ] ) (C {<_bind_querytype>}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [141 156 174 -1] ) (case_arm pat_list: [ {<-> <Id.Lit_QMark '?'> <Id.Lit_Star '*'> <Id.Lit_Equals '='> <Id.Lit_Star '*'>} ] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [177 182 188 -1] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (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 '$('> child: (C {<compgen>} {<-W>} { (SQ <'-all -class= -debug -nodebug -d2 -nod2\n'> < ' -domain= -search -nosearch -port= -querytype= -recurse -norecurse\n' > <' -retry= -timeout= -vc -novc -fail -nofail'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [212] ) ] ) (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: [195 209] ) ] ) (C {<local>} {<args>}) (C {<_count_args>} {<Id.Lit_Equals '='>}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_le left: {($ Id.VSub_DollarName '$args')} right: {<2>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_known_hosts_real>} {(DQ ($ Id.VSub_DollarName '$cur'))}) (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 '$args')} right: {<1>} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {(word_part.ExtGlob op:<Id.ExtGlob_At '@('> arms:[{} {<->}])} ) ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.PlusEqual rhs: {(sh_array_literal left:<Id.Op_LParen _> words:[{<->}])} spids: [321] ) ] ) ] ) ] spids: [275 288] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_nslookup>} {<nslookup>}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _host body: (BraceGroup children: [ (C {<local>} {<cur>} {<prev>} {<words>} {<cword>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_init_completion>}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{<-c>}] action: [ (C {<_bind_queryclass>}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [377 378 387 -1] ) (case_arm pat_list: [{<-t>}] action: [ (C {<_bind_querytype>}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [390 391 400 -1] ) (case_arm pat_list: [{<-m>}] 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 '$('> child: (C {<compgen>} {<-W>} {(SQ <'trace record usage'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [407] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [403 404 434 -1] ) (case_arm pat_list: [{<-N>} {<-R>} {<-W>}] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [437 442 448 -1] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (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 '$('> child: (C {<compgen>} {<-W>} {(SQ <'$( _parse_usage "$1" )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [472] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [455 469] ) ] ) (C {<_known_hosts_real>} {(DQ ($ Id.VSub_DollarName '$cur'))}) ] ) ) (C {<complete>} {<-F>} {<_host>} {<host>}) ] ) ] )