(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _modinfo 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: {(DQ ($ Id.VSub_DollarName '$prev'))} arms: [ (case_arm pat_list: [{(-F)} {(--field)}] 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:46) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:48) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'alias author depends description\n' span_id: 55 ) (Token id: Id.Lit_Chars val: ' filename firmware license parm srcversion staging vermagic\n' span_id: 56 ) (Token id:Id.Lit_Chars val:' version' span_id:57) ) } {(--)} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:64) suffix_op: (suffix_op.Unary op_id:Id.VOp1_DComma arg_word:(word.Empty)) ) ) } ) ] ) ) } ] ) } spids: [45] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:74) ) ] spids: [39 42 77 -1] ) (case_arm pat_list: [{(-k)}] action: [ (C {(_kernel_versions)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:87) ) ] spids: [80 81 90 -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:111) ) ] 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:117) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:119) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '-V --version -F --field -k -0 --null -a -d\n' span_id: 126 ) (Token id:Id.Lit_Chars val:' -l -p -n' span_id:127) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [116] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:141) ) ] spids: [97 113] ) ] ) (C {(local)} {(i)} {(Id.Lit_VarLike 'version=') (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:153) command_list: (command.CommandList children:[(C {(uname)} {(-r)})]) ) } ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.ArithWord w: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:168) prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) cond: (arith_expr.Binary op_id: Id.Arith_Great left: (arith_expr.VarRef token:(Token id:Id.Lit_ArithVarLike val:i span_id:177)) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 0)}) ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDMinus child: (sh_lhs_expr.Name name:i) ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:197) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 199 ) ) ) ) } right: {(-k)} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:208) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:version) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:words span_id:215) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 217 ) ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) ) } spids: [213] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Break val:break span_id:224) ) ] spids: [192 210] ) ] ) ] ) ) (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: { (word_part.ExtGlob op: (Token id:Id.ExtGlob_At val:'@(' span_id:248) arms: [{(Id.Lit_Other '*') (/)} {('[.~]')}] ) (Id.Lit_Other '*') } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:257) ) ] action: [ (C {(_filedir)} {(SQ (Token id:Id.Lit_Chars val:'@(?(k)o?(.gz))' span_id:265))}) ] spids: [238 259] ) ] else_action: [(C {(_modules)} {($ Id.VSub_DollarName '$version')})] ) ] ) ) (C {(complete)} {(-F)} {(_modinfo)} {(modinfo)}) ] )