(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _getent 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: (Token id:Id.ControlFlow_Return val:return span_id:30) ) ] ) (C {(local)} {(i)} {(db)}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:i span_id:50)) right: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:cword span_id:54)) ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:(sh_lhs_expr.Name name:i)) body: (command.DoGroup children: [ (command.Case to_match: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:70) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:i span_id:72) ) ) ) } arms: [ (case_arm pat_list: [ {(-V)} {(--version)} {(--usage)} {(-) (SQ (Token id:Id.Lit_Chars val:'?' span_id:87))} {(--help)} ] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:94) ) ] spids: [79 91 97 -1] ) (case_arm pat_list: [{(-s)} {(--service)}] action: [ (command.DParen child: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: (sh_lhs_expr.Name name:i) ) ) ] spids: [100 103 115 -1] ) (case_arm pat_list: [{(-) (Id.Lit_Star '*')}] spids: [118 120 123 -1] ) (case_arm pat_list: [{(Id.Lit_Star '*')}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:db) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:136) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 138 ) ) ) ) } spids: [134] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Break val:break span_id:143) ) ] spids: [126 127 146 -1] ) ] ) ] ) ) (command.Case to_match: {($ Id.VSub_DollarName '$db')} arms: [ (case_arm pat_list: [{(passwd)}] 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:168) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:170) command_list: (command.CommandList children: [ (C {(compgen)} {(-u)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [167] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:187) arg_word: {(0)} ) ] spids: [163 164 192 -1] ) (case_arm pat_list: [{(group)}] 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:200) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:202) command_list: (command.CommandList children: [ (C {(compgen)} {(-g)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [199] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:219) arg_word: {(0)} ) ] spids: [195 196 224 -1] ) (case_arm pat_list: [{(services)}] 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:232) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:234) command_list: (command.CommandList children: [ (C {(compgen)} {(-s)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [231] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:251) arg_word: {(0)} ) ] spids: [227 228 256 -1] ) (case_arm pat_list: [{(hosts)}] 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:264) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:266) command_list: (command.CommandList children: [ (C {(compgen)} {(-A)} {(hostname)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [263] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:285) arg_word: {(0)} ) ] spids: [259 260 290 -1] ) (case_arm pat_list: [{(protocols)} {(networks)} {(ahosts)} {(ahostsv4)} {(ahostsv6)} {(rpc)}] 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:308) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:310) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 317 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {($ Id.VSub_Number '$1')} {($ Id.VSub_DollarName '$db')} ) (C {(awk)} { (SQ (Token id: Id.Lit_Chars val: '{ print $1 }' span_id: 330 ) ) } ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [307] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:347) arg_word: {(0)} ) ] spids: [293 304 352 -1] ) (case_arm pat_list: [{(aliases)} {(shadow)} {(gshadow)}] 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:364) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:366) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 373 ) command_list: (command.CommandList children: [ (command.Pipeline children: [ (C {($ Id.VSub_Number '$1')} {($ Id.VSub_DollarName '$db')} ) (C {(cut)} {(-d) (Id.Lit_Other ':')} {(-f1)} ) ] negated: F ) ] ) ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [363] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:404) arg_word: {(0)} ) ] spids: [355 360 409 -1] ) (case_arm pat_list: [{(ethers)} {(netgroup)}] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:418) ) ] spids: [412 415 421 -1] ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-s)} {(--service)}] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:441) ) ] spids: [435 438 444 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:455) ) ] ) (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: (Token id:Id.Op_Semi val:';' span_id:471) ) ] 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:477) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:479) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" )' span_id: 486 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [476] ) ] ) (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)}) ] ) ] spids: [459 473] ) (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: {($ Id.VSub_DollarName '$db')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:529) ) ] 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:535) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:537) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'passwd group hosts services protocols\n' span_id: 544 ) (Token id: Id.Lit_Chars val: ' networks ahosts ahostsv4 ahostsv6 aliases ethers netgroup rpc\n' span_id: 545 ) (Token id:Id.Lit_Chars val:' shadow gshadow' span_id:546) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [534] ) ] ) ] spids: [520 531] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_getent)} {(getent)}) ] )