(command.CommandList children: [ (command.CommandList children: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'NOINUSE_CHECK='> name:NOINUSE_CHECK) op: assign_op.Equal rhs: {<1>} spids: [103] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (C {<export>} {<NOINUSE_CHECK>}) ] ) (command.CommandList children: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PATH='> name:PATH) op: assign_op.Equal rhs: {<'/usr/sbin'> <Id.Lit_Colon ':'> <'/usr/bin'>} spids: [112] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (C {<export>} {<PATH>}) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE) op: assign_op.Equal rhs: {(DQ <'Usage: swapadd [-12] [file_system_table]'>)} spids: [122] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'VFSTAB='> name:VFSTAB) op: assign_op.Equal rhs: {<'/etc/vfstab'>} spids: [128] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PASS='> name:PASS) op: assign_op.Equal rhs: {<2>} spids: [134] ) ] redirects: [] ) (command.ShFunction name: checkmount body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (C {<read>} {<rspecial>} {<rfsckdev>} {<rmountp>} {<rfstype>} {<rfsckpass>} {<rautomnt>} {<rmntopts>} ) ] ) body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ Id.VSub_DollarName rspecial))} arms: [ (case_arm pat_list: [{(SQ <'#'>) <Id.Lit_Star '*'>} {(SQ )} {(SQ <->)}] action: [(command.ControlFlow token:<Id.ControlFlow_Continue continue>)] spids: [206 221 225 -1] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_DollarName rmountp))} {<Id.Lit_Equals '='>} {(DQ <x> ($ Id.VSub_Number 1))} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_DollarName rmntopts))} {<Id.Lit_Equals '='>} {<x->} {<Id.Lit_RBracket ']'>} ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'rmntopts='> name: rmntopts ) op: assign_op.Equal rhs: {<rw>} spids: [281] ) ] redirects: [] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple words: [ {<'/sbin/mount'>} {<-m>} {<-o>} {($ Id.VSub_DollarName rmntopts)} {($ Id.VSub_DollarName rspecial)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] more_env: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<echo>} { (DQ <'Mounting '> ($ Id.VSub_DollarName rmountp) <' for swap'>) } ) ] spids: [286 307] ) ] else_action: [ (C {<echo>} { (DQ <'Mount of '> ($ Id.VSub_DollarName rmountp) <' for swap failed'> ) } ) ] redirects: [] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [232 251] ) ] else_action: [] redirects: [] ) ] ) redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName VFSTAB)} ) ] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name: die body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.Simple words: [{<echo>} {(DQ ($ Id.VSub_Star '*'))}] redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] more_env: [] do_fork: T ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [(command.Sentence child:(C {<getopts>} {<12>} {<opt>}) terminator:<Id.Op_Semi _>)] ) body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ Id.VSub_DollarName opt))} arms: [ (case_arm pat_list: [{<1>} {<2>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'PASS='> name:PASS) op: assign_op.Equal rhs: {($ Id.VSub_DollarName opt)} spids: [399] ) ] redirects: [] ) ] spids: [394 397 402 -1] ) (case_arm pat_list: [{(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\?'> ch:'?')}] action: [(C {<die>} {(DQ ($ Id.VSub_DollarName USAGE))})] spids: [405 406 414 -1] ) ] redirects: [] ) ] ) redirects: [] ) (C {<shift>} { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<expr>} {($ Id.VSub_DollarName OPTIND)} {<->} {<1>}) right: <Id.Backtick_Right '`'> ) } ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-gt>} {<1>} {<Id.Lit_RBracket ']'>}) (C {<die>} {(DQ ($ Id.VSub_DollarName USAGE))}) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-gt>} {<0>} {<Id.Lit_RBracket ']'>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'VFSTAB='> name:VFSTAB) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_Number 1))} spids: [466] ) ] redirects: [] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {(DQ <x> ($ Id.VSub_DollarName VFSTAB))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<x->} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<Id.Lit_LBracket '['>} {<-s>} {(DQ ($ Id.VSub_DollarName VFSTAB))} {<Id.Lit_RBracket ']'>} ) (C {<die>} { (DQ <'swapadd: file system table ('> ($ Id.VSub_DollarName VFSTAB) <') not found'>) } ) ] ) (command.Simple words: [{<exec>}] redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName VFSTAB)} ) ] more_env: [] do_fork: T ) ] spids: [481 498] ) ] else_action: [] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (C {<read>} {<special>} {<t1>} {<t2>} {<fstype>} {<t3>} {<t4>} {<t5>}) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (command.Case to_match: {(DQ ($ Id.VSub_DollarName special))} arms: [ (case_arm pat_list: [{(SQ <'#'>) <Id.Lit_Star '*'>} {(SQ )} {(SQ <->)}] action: [(command.ControlFlow token:<Id.ControlFlow_Continue continue>)] spids: [585 600 604 -1] ) ] redirects: [] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName fstype))} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<swap>} {<Id.Lit_RBracket ']'>} ) (command.ControlFlow token:<Id.ControlFlow_Continue continue>) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName PASS)} {<Id.Lit_Equals '='>} {<1>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<Id.KW_Bang '!'>} {<-b>} {($ Id.VSub_DollarName special)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [(C {<checkmount>} {($ Id.VSub_DollarName special)})] spids: [678 691] ) ] else_action: [] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName special)} {<-a>} {<-w>} {($ Id.VSub_DollarName special)} {<-o>} {<-b>} {($ Id.VSub_DollarName special)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Simple words: [ {<swap>} {<-> ($ Id.VSub_DollarName PASS)} {<-a>} {($ Id.VSub_DollarName special)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) ] spids: [738 761] ) ] else_action: [] redirects: [] ) ] spids: [642 655] ) ] else_action: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Pipeline children: [ (command.Simple words: [{<swap>} {<-l>}] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) (command.Simple words: [{<grep>} {(SQ <'\\<'>) (${ Id.VSub_Name special) (SQ <'\\>'>)}] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) (redir op: <Id.Redir_GreatAnd '2>&'> loc: (redir_loc.Fd fd:2) arg: {<1>} ) ] more_env: [] do_fork: T ) ] negated: F stderr_indices: [] ) (command.Simple words: [ {<swap>} {<-> ($ Id.VSub_DollarName PASS)} {<-a>} {($ Id.VSub_DollarName special)} ] redirects: [ (redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {<'/dev/null'>} ) ] more_env: [] do_fork: T ) ] ) ] redirects: [] ) ] ) redirects: [] ) ] )