(command.CommandList children: [ (command.FuncDef name: _smartctl_quietmode body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[11]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'errorsonly silent noserial'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [14 30] ) } ] ) } spids: [11] ) ] spids: [11] ) ] spids: [8] ) spids: [4 7] ) (command.FuncDef name: _smartctl_device body: (command.BraceGroup children: [ (command.Case to_match: {($ VSub_DollarName '$cur')} arms: [ (case_arm pat_list: [ {(areca) (Lit_Other '*')} {(3ware) (Lit_Other '*')} {(megaraid) (Lit_Other '*')} {(cciss) (Lit_Other '*')} ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[64]) op: PlusEqual rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.StringUnary op_id: VOp1_DPercent arg_word: {(',*')} ) spids: [67 71] ) (Lit_Comma ',') (Lit_LBrace '{') (0..31) (Lit_RBrace '}') } ] ) } spids: [64] ) ] spids: [64] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[80]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'"${COMPREPLY[@]}"'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [83 99] ) } ] ) } spids: [80] ) ] spids: [80] ) ] spids: [50 61 104 16777215] ) (case_arm pat_list: [{(hpt) (Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[112]) op: PlusEqual rhs: { (word_part.ArrayLiteralPart words: [ {(hpt) (Lit_Comma ',') (Lit_LBrace '{') (1..4) (Lit_RBrace '}') (/) (Lit_LBrace '{') (1..8) (Lit_RBrace '}') } {(hpt) (Lit_Comma ',') (Lit_LBrace '{') (1..4) (Lit_RBrace '}') (/) (Lit_LBrace '{') (1..8) (Lit_RBrace '}') (/) (Lit_LBrace '{') (1..5) (Lit_RBrace '}') } ] ) } spids: [112] ) ] spids: [112] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[142]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'"${COMPREPLY[@]}"'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [145 161] ) } ] ) } spids: [142] ) ] spids: [142] ) ] spids: [107 109 166 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[173]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart 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 ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [176 195] ) } ] ) } spids: [173] ) ] spids: [173] ) (command.Case to_match: { (DQ (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [203 208] ) ) } arms: [ (case_arm pat_list: [{(areca)} {(3ware)} {(hpt)} {(megaraid)} {(cciss)}] action: [(C {(compopt)} {(-o)} {(nospace)})] spids: [214 223 233 16777215] ) ] spids: [200 211 236] ) ] spids: [169 170 239 16777215] ) ] spids: [43 47 242] ) ] spids: [40] ) spids: [36 39] ) (command.FuncDef name: _smartctl_tolerance body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[253]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'normal conservative permissive verypermissive'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [256 274] ) } ] ) } spids: [253] ) ] spids: [253] ) ] spids: [250] ) spids: [246 249] ) (command.FuncDef name: _smartctl_badsum body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[287]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'warn exit ignore'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [290 306] ) } ] ) } spids: [287] ) ] spids: [287] ) ] spids: [284] ) spids: [280 283] ) (command.FuncDef name: _smartctl_report body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[319]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'ioctl ataioctl scsiioctl'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [322 338] ) } ] ) } spids: [319] ) ] spids: [319] ) ] spids: [316] ) spids: [312 315] ) (command.FuncDef name: _smartctl_powermode body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[351]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'never sleep standby idle'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [354 370] ) } ] ) } spids: [351] ) ] spids: [351] ) ] spids: [348] ) spids: [344 347] ) (command.FuncDef name: _smartctl_feature body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[383]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [386 402] ) } ] ) } spids: [383] ) ] spids: [383] ) ] spids: [380] ) spids: [376 379] ) (command.FuncDef name: _smartctl_log body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[415]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart 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 ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [418 436] ) } ] ) } spids: [415] ) ] spids: [415] ) ] spids: [412] ) spids: [408 411] ) (command.FuncDef name: _smartctl_vendorattribute body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[449]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart 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 ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [452 471] ) } ] ) } spids: [449] ) ] spids: [449] ) ] spids: [446] ) spids: [442 445] ) (command.FuncDef name: _smartctl_firmwarebug body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[484]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'none samsung samsung2 samsung3 swapid'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [487 505] ) } ] ) } spids: [484] ) ] spids: [484] ) ] spids: [481] ) spids: [477 480] ) (command.FuncDef name: _smartctl_presets body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[518]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'use ignore show showall'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [521 537] ) } ] ) } spids: [518] ) ] spids: [518] ) ] spids: [515] ) spids: [511 514] ) (command.FuncDef name: _smartctl_test body: (command.BraceGroup children: [ (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$cur')} right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(pending)} {(scttempint)} {(vendor)}] spids: [556 562] ) (Lit_Comma ',') } ) ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[574]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart 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 ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [577 595] ) } ] ) } spids: [574] ) ] spids: [574] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (Lit_Comma ',')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) ] spids: [547] ) spids: [543 546] ) (command.FuncDef name: _smartctl_drivedb body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:prefix spids:[630]) op: Equal rhs: (word.EmptyWord) spids: [630] ) ] spids: [628] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$cur')} right: {(Lit_Other '+') (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:prefix spids:[651]) op: Equal rhs: {(Lit_Other '+')} spids: [651] ) ] spids: [651] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[655]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.StringUnary op_id:VOp1_Pound arg_word:{('+')}) spids: [657 661] ) ) } spids: [655] ) ] spids: [655] ) ] spids: [16777215 648] ) ] spids: [16777215 665] ) (C {(_filedir)} {(h)}) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolUnary op_id:BoolUnary_n child:{($ VSub_DollarName '$prefix')}) ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[683]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (DQ (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Lit_At) suffix_op: (suffix_op.PatSub pat: {} replace: {($ VSub_DollarName '$prefix')} replace_mode: Lit_Pound spids: [692] ) spids: [687 696] ) ) } ] ) } spids: [683] ) ] spids: [683] ) ] ) ] spids: [625] ) spids: [621 624] ) (command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _smartctl body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[713]) op: Equal spids: [713] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[715]) op: Equal spids: [715] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[717]) op: Equal spids: [717] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[719]) op: Equal spids: [719] ) (assign_pair lhs: (lhs_expr.LhsName name:split spids:[721]) op: Equal spids: [721] ) ] spids: [711] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-q)} {(--quietmode)}] action: [(C {(_smartctl_quietmode)})] spids: [741 744 750 16777215] ) (case_arm pat_list: [{(-d)} {(--device)}] action: [ (C {(_smartctl_device)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [753 756 767 16777215] ) (case_arm pat_list: [{(-T)} {(--tolerance)}] action: [ (C {(_smartctl_tolerance)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [770 773 784 16777215] ) (case_arm pat_list: [{(-b)} {(--badsum)}] action: [ (C {(_smartctl_badsum)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [787 790 801 16777215] ) (case_arm pat_list: [{(-r)} {(--report)}] action: [ (C {(_smartctl_report)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [804 807 818 16777215] ) (case_arm pat_list: [{(-n)} {(--nocheck)}] action: [ (C {(_smartctl_powermode)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [821 824 835 16777215] ) (case_arm pat_list: [{(-s)} {(--smart)} {(-o)} {(--offlineauto)} {(-S)} {(--saveauto)}] action: [ (C {(_smartctl_feature)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [838 849 860 16777215] ) (case_arm pat_list: [{(-l)} {(--log)}] action: [ (C {(_smartctl_log)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [863 866 877 16777215] ) (case_arm pat_list: [{(-v)} {(--vendorattribute)}] action: [ (C {(_smartctl_vendorattribute)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [880 883 894 16777215] ) (case_arm pat_list: [{(-F)} {(--firmwarebug)}] action: [ (C {(_smartctl_firmwarebug)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [897 900 911 16777215] ) (case_arm pat_list: [{(-P)} {(--presets)}] action: [ (C {(_smartctl_presets)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [914 917 928 16777215] ) (case_arm pat_list: [{(-B)} {(--drivedb)}] action: [ (C {(_smartctl_drivedb)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [931 934 945 16777215] ) (case_arm pat_list: [{(-t)} {(--test)}] action: [ (C {(_smartctl_test)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [948 951 962 16777215] ) ] spids: [734 738 965] ) (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[998]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart 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 ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [1001 1023] ) } ] ) } spids: [998] ) ] spids: [998] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) ] spids: [16777215 995] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[1051]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonEquals arg_word: {(Lit_Slash /) (dev) (Lit_Slash /)} ) spids: [1052 1058] ) } spids: [1051] ) ] spids: [1051] ) (C {(_filedir)}) ] spids: [1048 1064] ) ] spids: [708] ) spids: [704 707] ) (C {(complete)} {(-F)} {(_smartctl)} {(smartctl)}) ] ) ] )