(command.CommandList children: [ (command.ShFunction name: _reply_compgen_array body: (BraceGroup children: [ (C {<local>} {<i>} {<wlist>}) (command.ForEach iter_name: i iter_words: [ { (braced_var_sub token: <Id.VSub_Name COMPREPLY> prefix_op: (Id.VSub_Bang) bracket_op: (bracket_op.WholeArray op_id:Id.Arith_Star) ) } ] do_arg_iter: F body: (command.DoGroup children: [ (C {<local>} {<Id.Lit_VarLike 'q='> (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<quote>} { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<printf>} {<Id.Lit_Other '%'> <q>} { (DQ (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$i')} ) ) ) } ) ) ) } ) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:wlist) op: assign_op.PlusEqual rhs: {($ Id.VSub_DollarName '$q') (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\n'>] multiline: F ) } spids: [91] ) ] ) ] ) ) (C {<local>} {<Id.Lit_VarLike 'ecur='> (DQ ($ Id.VSub_DollarName '$cur'))}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ecur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name ecur> suffix_op: (suffix_op.PatSub pat: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>)} replace: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\\\'> ) } replace_mode: Id.Lit_Slash ) ) } spids: [114] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ecur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name ecur> suffix_op: (suffix_op.PatSub pat: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)} replace: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\\''> ) } replace_mode: Id.Lit_Slash ) ) } spids: [126] ) ] ) (C {<local>} {<Id.Lit_VarLike 'oldifs='> ($ Id.VSub_DollarName '$IFS')}) (command.Simple words: [{<eval>} {(SQ <'COMPREPLY=(`compgen -W "$wlist" -- "${ecur}"`)'>)}] more_env: [ (env_pair name: IFS val: { (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\n'>] multiline: F ) } spids: [149] ) ] do_fork: T ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$oldifs')} spids: [161] ) ] ) ] ) ) (command.ShFunction name: __linux_fstab_unescape body: (BraceGroup children: [ (C {<eval>} {($ Id.VSub_Number '$1') <Id.Lit_Equals '='> (DQ <'\''> (braced_var_sub token: <Id.VSub_Number 1> prefix_op: (Id.VSub_Bang) suffix_op: (suffix_op.PatSub pat: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)} replace: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) <047>} replace_mode: Id.Lit_Slash ) ) <'\''> ) } ) (C {<eval>} {($ Id.VSub_Number '$1') <Id.Lit_Equals '='> (DQ <'\''> (braced_var_sub token: <Id.VSub_Number 1> prefix_op: (Id.VSub_Bang) suffix_op: (suffix_op.PatSub pat: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>)} replace: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\\\'> ) } replace_mode: Id.Lit_Percent ) ) <'\''> ) } ) (C {<eval>} { (DQ ($ Id.VSub_Number '$1') <'='> <Id.Lit_Dollar '$'> <'\''> (braced_var_sub token:<Id.VSub_Number 1> prefix_op:(Id.VSub_Bang)) <'\''> ) } ) ] ) ) (command.ShFunction name: _linux_fstab body: (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 _>)} spids: [253] ) ] ) (C {<local>} {<fs_spec>} {<fs_file>} {<fs_other>}) (C {<local>} {<Id.Lit_VarLike 'oldifs='> (DQ ($ Id.VSub_DollarName '$IFS'))}) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (C {<read>} {<-r>} {<fs_spec>} {<fs_file>} {<fs_other>}) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (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 '$fs_spec')} right: {<Id.Lit_Other '['> <Id.Lit_Pound '#'> <Id.Lit_Other ']'> <Id.Lit_Other '*'> } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Sentence child: (command.ControlFlow token:<Id.ControlFlow_Continue continue>) terminator: <Id.Op_Semi _> ) ] spids: [296 312] ) ] ) (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_Number '$1')} right: {<Id.BoolUnary_L -L>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<local>} {<Id.Lit_VarLike 'fs_label='> (braced_var_sub token: <Id.VSub_Name fs_spec> suffix_op: (suffix_op.PatSub pat: {<'LABEL='>} replace_mode: Id.Lit_Pound ) ) } ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$fs_label')} right: {(DQ ($ Id.VSub_DollarName '$fs_spec'))} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<__linux_fstab_unescape>} {<fs_label>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: { (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\0'>] multiline: F ) } spids: [370] ) ] ) (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: [{(DQ ($ Id.VSub_DollarName '$fs_label'))}] ) } spids: [376] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$oldifs')} spids: [384] ) ] ) ] spids: [347 362] ) ] ) ] spids: [320 333] ) ] else_action: [ (C {<__linux_fstab_unescape>} {<fs_spec>}) (C {<__linux_fstab_unescape>} {<fs_file>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: { (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\0'>] multiline: F ) } spids: [404] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$fs_spec')} right: {<Id.Lit_Other '*'> <'/'> <Id.Lit_Other '*'>} ) ) (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: [{(DQ ($ Id.VSub_DollarName '$fs_spec'))}] ) } spids: [424] ) ] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$fs_file')} right: {<Id.Lit_Other '*'> <'/'> <Id.Lit_Other '*'>} ) ) (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: [{(DQ ($ Id.VSub_DollarName '$fs_file'))}] ) } spids: [446] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$oldifs')} spids: [454] ) ] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$cur')}) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$cur')} right: {<'/'> <Id.Lit_Other '*'>} ) ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<local>} {<realcur>}) (command.AndOr ops: [Id.Op_DAmp Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {<Id.Lit_Other '*'> <'/'>} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:realcur) op: assign_op.Equal rhs: { (DQ (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Simple words: [ {<readlink>} {<-f>} {(DQ ($ Id.VSub_DollarName '$cur') <.>)} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) ) <'/'> ) } spids: [512] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:realcur) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Simple words: [{<readlink>} {<-f>} {(DQ ($ Id.VSub_DollarName '$cur'))}] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) ) } spids: [536] ) ] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$realcur')}) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<local>} {<Id.Lit_VarLike 'dirrealcur='>} {<Id.Lit_VarLike 'dircur='>} {<basecur>} ) (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 '*'> <'/'> <Id.Lit_Other '*'>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:dirrealcur) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name realcur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Percent '%'> arg_word: {<Id.Lit_Slash '/'> <'*'>} ) ) <'/'> ) } spids: [593] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:dircur) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Percent '%'> arg_word: {<Id.Lit_Slash '/'> <'*'>} ) ) <'/'> ) } spids: [605] ) ] ) ] spids: [575 590] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:basecur) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Pound '#'> arg_word: {(DQ ($ Id.VSub_DollarName '$dircur'))} ) ) } spids: [620] ) ] ) (C {<local>} {<i>} {<Id.Lit_VarLike 'n='> (braced_var_sub token: <Id.VSub_Name COMPREPLY> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: <Id.Lit_ArithVarLike i> right: {($ Id.VSub_DollarName '$n')} ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: <Id.Lit_ArithVarLike i> ) body: (command.DoGroup children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (DQ (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: <Id.Lit_ArithVarLike i> ) ) ) } right: {(DQ ($ Id.VSub_DollarName '$realcur')) <Id.Lit_Other '*'> } ) ) (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: (command.AndOr ops: [Id.Op_DAmp] children: [ (command.Simple words: [ {<cd>} { (DQ ($ Id.VSub_DollarName '$dircur' ) ) } ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) (C {<compgen>} {<-f>} {<-d>} {<-P>} { (DQ ($ Id.VSub_DollarName '$dircur') ) } {<-X>} { (DQ <'!'> (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: <Id.Lit_ArithVarLike i> ) suffix_op: (suffix_op.Unary tok: <Id.VOp1_DPound '##'> arg_word: { (DQ ($ Id.VSub_DollarName '$dirrealcur' ) ) } ) ) ) } {<-->} {(DQ ($ Id.VSub_DollarName '$basecur'))} ) ] ) ) } ] ) } spids: [693] ) ] ) ] ) ] ) ) ] spids: [554 563] ) ] ) ] spids: [469 487] ) ] ) (C {<_reply_compgen_array>}) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _umount 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: {(DQ ($ Id.VSub_DollarName '$prev'))} arms: [ (case_arm pat_list: [{<-t>}] action: [ (C {<local>} {<Id.Lit_VarLike 'split='> <false>}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {<Id.Lit_Other '?'> <Id.Lit_Other '*'> <Id.Lit_Other ','> <Id.Lit_Other '*'> } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:prev) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_Percent '%'> arg_word: {<',*'>} ) ) ) } spids: [837] ) ] ) (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 tok: <Id.VOp1_DPound '##'> arg_word: {<'*,'>} ) ) ) } spids: [847] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:split) op: assign_op.Equal rhs: {<true>} spids: [857] ) ] ) ] spids: [816 834] ) ] ) (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 <'adfs affs autofs btrfs cifs coda\n'> < ' cramfs debugfs devpts efs ext2 ext3 ext4 fuse hfs hfsplus hpfs\n' > <' iso9660 jfs minix msdos ncpfs nfs nfs4 ntfs ntfs-3g proc qnx4\n'> < ' ramfs reiserfs romfs squashfs smbfs sysv tmpfs ubifs udf ufs\n' > <' umsdos usbfs vfat xfs'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [864] ) ] ) (C {<_fstypes>}) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (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: [ { (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 '$prev') <','>} replace_mode: Id.Lit_Pound ) ) } ] ) } spids: [899] ) ] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [802 803 920 -1] ) (case_arm pat_list: [{<-O>}] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [923 924 934 -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: {(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 '$('> child: (C {<compgen>} {<-W>} { (SQ <'-V -h -v -n -r -d -i -a -t -O -f -l\n'> <' --no-canonicalize --fake'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [960] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$COMPREPLY')}) ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] ) ] spids: [941 957] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id:Id.BoolUnary_r child:{<'/proc/mounts'>}) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [{<_linux_fstab>}] redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {<'/proc/mounts'>} ) ] do_fork: T ) ] spids: [1000 1011] ) ] else_action: [ (C {<local>} {<Id.Lit_VarLike 'IFS='> (single_quoted left: <Id.Left_DollarSingleQuote '$\''> tokens: [<Id.Char_OneChar '\\n'>] multiline: F ) } ) (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 <'$( mount | cut -d" " -f 3 )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [1040] ) ] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_umount>} {<-o>} {<dirnames>} {<umount>}) ] ) ] )