(command.CommandList children: [ (command.ShFunction name: _smartctl_quietmode body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'errorsonly silent noserial'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [11] ) ] ) ] ) ) (command.ShFunction name: _smartctl_device body: (command.BraceGroup children: [ (command.Case to_match: {($ Id.VSub_DollarName '$cur')} arms: [ (case_arm pat_list: [ {<areca> <Id.Lit_Star '*'>} {<3ware> <Id.Lit_Star '*'>} {<megaraid> <Id.Lit_Star '*'>} {<cciss> <Id.Lit_Star '*'>} ] action: [ (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: [ (word.BracedTree parts: [ (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary op_id: Id.VOp1_DPercent arg_word: {<',*'>} ) ) <Id.Lit_Comma ','> (word_part.BracedRange kind: Id.Range_Int start: 0 end: 31 step: 1 ) ] ) ] ) } spids: [64] ) ] ) (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'"${COMPREPLY[@]}"'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [80] ) ] ) ] spids: [50 61 104 -1] ) (case_arm pat_list: [{<hpt> <Id.Lit_Star '*'>}] action: [ (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: [ (word.BracedTree parts: [ <hpt> <Id.Lit_Comma ','> (word_part.BracedRange kind: Id.Range_Int start: 1 end: 4 step: 1 ) </> (word_part.BracedRange kind: Id.Range_Int start: 1 end: 8 step: 1 ) ] ) (word.BracedTree parts: [ <hpt> <Id.Lit_Comma ','> (word_part.BracedRange kind: Id.Range_Int start: 1 end: 4 step: 1 ) </> (word_part.BracedRange kind: Id.Range_Int start: 1 end: 8 step: 1 ) </> (word_part.BracedRange kind: Id.Range_Int start: 1 end: 5 step: 1 ) ] ) ] ) } spids: [112] ) ] ) (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'"${COMPREPLY[@]}"'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [142] ) ] ) ] spids: [107 109 166 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] 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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} { (DQ <'ata scsi sat usbcypress usbjmicron\n'> < ' usbsunplus marvell areca 3ware hpt megaraid cciss auto test' > ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [173] ) ] ) (command.Case to_match: { (DQ (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } arms: [ (case_arm pat_list: [{<areca>} {<3ware>} {<hpt>} {<megaraid>} {<cciss>}] action: [(C {<compopt>} {<-o>} {<nospace>})] spids: [214 223 233 -1] ) ] ) ] spids: [169 170 239 -1] ) ] ) ] ) ) (command.ShFunction name: _smartctl_tolerance body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'normal conservative permissive verypermissive'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [253] ) ] ) ] ) ) (command.ShFunction name: _smartctl_badsum body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'warn exit ignore'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [287] ) ] ) ] ) ) (command.ShFunction name: _smartctl_report body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'ioctl ataioctl scsiioctl'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [319] ) ] ) ] ) ) (command.ShFunction name: _smartctl_powermode body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'never sleep standby idle'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [351] ) ] ) ] ) ) (command.ShFunction name: _smartctl_feature body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'on off'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [383] ) ] ) ] ) ) (command.ShFunction name: _smartctl_log body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} { (SQ <'error selftest selective directory background\n'> < ' sasphy sasphy,reset sataphy sataphy,reset scttemp scttempsts\n' > <' scttemphist scterc gplog smartlog xerror xselftest'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [415] ) ] ) ] ) ) (command.ShFunction name: _smartctl_vendorattribute body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} { (SQ <'help 9,minutes 9,seconds 9,halfminutes 9,temp\n'> < ' 192,emergencyretractcyclect 193,loadunload 194,10xCelsius 194,unknown\n' > <' 198,offlinescanuncsectorct 200,writeerrorcount 201,detectedtacount\n'> <' 220,temp'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [449] ) ] ) ] ) ) (command.ShFunction name: _smartctl_firmwarebug body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'none samsung samsung2 samsung3 swapid'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [484] ) ] ) ] ) ) (command.ShFunction name: _smartctl_presets body: (command.BraceGroup children: [ (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'use ignore show showall'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [518] ) ] ) ] ) ) (command.ShFunction name: _smartctl_test body: (command.BraceGroup children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: { (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [{<pending>} {<scttempint>} {<vendor>}] ) <Id.Lit_Other ','> } ) ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] ) (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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} { (SQ <'offline short long conveyance select,\n'> < ' select,redo select,next afterselect,on afterselect,off pending,\n' > <' scttempint, vendor,'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [574] ) ] ) (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.Lit_Other ','>} ) ) (C {<compopt>} {<-o>} {<nospace>}) ] ) ] ) ) (command.ShFunction name: _smartctl_drivedb body: (command.BraceGroup children: [ (C {<local>} {<Id.Lit_VarLike 'prefix='>}) (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 '+'> <Id.Lit_Other '*'>} ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prefix) op: assign_op.Equal rhs: {<Id.Lit_Other '+'>} spids: [651] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:cur) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary op_id:Id.VOp1_Pound arg_word:{<'+'>}) ) ) } spids: [655] ) ] ) ] spids: [633 648] ) ] ) (C {<_filedir>} {<h>}) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_n child:{($ Id.VSub_DollarName '$prefix')}) ) (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: [ { (DQ (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) suffix_op: (suffix_op.PatSub pat: {} replace: {($ Id.VSub_DollarName '$prefix')} replace_mode: Id.Lit_Pound ) ) ) } ] ) } spids: [683] ) ] ) ] ) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _smartctl 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:<Id.ControlFlow_Return return>) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{<-q>} {<--quietmode>}] action: [(C {<_smartctl_quietmode>})] spids: [741 744 750 -1] ) (case_arm pat_list: [{<-d>} {<--device>}] action: [ (C {<_smartctl_device>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [753 756 767 -1] ) (case_arm pat_list: [{<-T>} {<--tolerance>}] action: [ (C {<_smartctl_tolerance>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [770 773 784 -1] ) (case_arm pat_list: [{<-b>} {<--badsum>}] action: [ (C {<_smartctl_badsum>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [787 790 801 -1] ) (case_arm pat_list: [{<-r>} {<--report>}] action: [ (C {<_smartctl_report>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [804 807 818 -1] ) (case_arm pat_list: [{<-n>} {<--nocheck>}] action: [ (C {<_smartctl_powermode>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [821 824 835 -1] ) (case_arm pat_list: [{<-s>} {<--smart>} {<-o>} {<--offlineauto>} {<-S>} {<--saveauto>}] action: [ (C {<_smartctl_feature>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [838 849 860 -1] ) (case_arm pat_list: [{<-l>} {<--log>}] action: [ (C {<_smartctl_log>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [863 866 877 -1] ) (case_arm pat_list: [{<-v>} {<--vendorattribute>}] action: [ (C {<_smartctl_vendorattribute>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [880 883 894 -1] ) (case_arm pat_list: [{<-F>} {<--firmwarebug>}] action: [ (C {<_smartctl_firmwarebug>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [897 900 911 -1] ) (case_arm pat_list: [{<-P>} {<--presets>}] action: [ (C {<_smartctl_presets>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [914 917 928 -1] ) (case_arm pat_list: [{<-B>} {<--drivedb>}] action: [ (C {<_smartctl_drivedb>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [931 934 945 -1] ) (case_arm pat_list: [{<-t>} {<--test>}] action: [ (C {<_smartctl_test>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [948 951 962 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] ) (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: <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 '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} { (SQ <'--help --version --info --all --xall\n'> < ' --scan --scan-open --quietmode= --device= --tolerance= --badsum=\n' > <' --report= --nocheck= --smart= --offlineauto= --saveauto= --health\n'> < ' --capabilities --attributes --log= --vendorattribute=\n' > <' --firmwarebug= --presets= --drivedb= --test= --captive --abort'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [998] ) ] ) (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: [979 995] ) ] else_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 op_id: Id.VTest_ColonEquals arg_word: {<Id.Lit_Slash /> <dev> <Id.Lit_Slash />} ) ) } spids: [1051] ) ] ) (C {<_filedir>}) ] ) ] ) ) (C {<complete>} {<-F>} {<_smartctl>} {<smartctl>}) ] ) ] )