(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'USAGE='> name:USAGE) op: assign_op.Equal rhs: {(DQ <'shareall [-F fsys[,fsys...]] [- | file]'>)} spids: [78] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fsys='> name:fsys) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [83] ) ] redirects: [] ) (C {<set>} {<-->} { (command_sub left_token: <Id.Left_Backtick '`'> child: (C {<getopt>} {<F> <Id.Lit_Colon ':'>} {($ Id.VSub_Star '*')}) right: <Id.Backtick_Right '`'> ) } ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.Simple words: [{<echo>} {($ Id.VSub_DollarName USAGE)}] 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>}) ] spids: [100 117] ) ] else_action: [] redirects: [] ) (command.ForEach iter_names: [i] iterable: (for_iter.Words words:[{($ Id.VSub_Star '*')}]) body: (command.DoGroup children: [ (command.Case to_match: {($ Id.VSub_DollarName i)} arms: [ (case_arm pat_list: [{<-F>}] action: [ (command.Sentence child: (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fsys='> name:fsys) op: assign_op.Equal rhs: {($ Id.VSub_Number 2)} spids: [158] ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (C {<shift>} {<2>}) ] spids: [155 156 165 -1] ) (case_arm pat_list: [{<-->}] action: [ (command.Sentence child: (C {<shift>}) terminator: <Id.Op_Semi _> ) (command.ControlFlow token:<Id.ControlFlow_Break break>) ] spids: [168 169 175 -1] ) ] redirects: [] ) ] ) redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<-gt>} {<1>} {<Id.Lit_RBracket ']'>}) ] ) action: [ (command.Simple words: [{<echo>} {($ Id.VSub_DollarName USAGE)}] 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>}) ] spids: [183 198] ) (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Pound '#')} {<Id.Lit_Equals '='>} {<1>} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.Case to_match: {($ Id.VSub_Number 1)} arms: [ (case_arm pat_list: [{<->}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'infile='> name:infile) op: assign_op.Equal rhs: (rhs_word.Empty) spids: [238] ) ] redirects: [] ) ] spids: [235 236 239 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'infile='> name:infile) op: assign_op.Equal rhs: {($ Id.VSub_Number 1)} spids: [248] ) ] redirects: [] ) ] spids: [245 246 250 -1] ) ] redirects: [] ) ] spids: [213 225] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'infile='> name:infile) op: assign_op.Equal rhs: {<'/etc/dfs/dfstab'>} spids: [261] ) ] redirects: [] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName fsys))} {<Id.Lit_RBracket ']'>}) ] ) action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName infile))} {<Id.Lit_Equals '='>} {(DQ <'/etc/dfs/dfstab'>)} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (C {<'/usr/sbin/sharemgr'>} {<start>} {<-P>} {($ Id.VSub_DollarName fsys)} {<-a>}) ] spids: [287 304] ) ] else_action: [ (command.Pipeline children: [ (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands:[(C {<read>} {<line>})]) body: (command.DoGroup children:[(C {<echo>} {($ Id.VSub_DollarName line)})]) redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName infile)} ) ] ) (C { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<egrep>} { (DQ <'^[^#]*[ \t][ \t]*-F[ \t]*('> (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<echo>} {($ Id.VSub_DollarName fsys)}) (C {<tr>} {(SQ <','>)} {(SQ <'|'>)}) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) <')'> ) } ) (C {<'/sbin/sh'>}) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } ) ] negated: F stderr_indices: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'fsys_file='> name:fsys_file) op: assign_op.Equal rhs: {<'/etc/dfs/fstypes'>} spids: [389] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {<-f>} {($ Id.VSub_DollarName fsys_file)} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'def_fs='> name:def_fs) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<egrep>} {(SQ <'^[^#]'>)} {($ Id.VSub_DollarName fsys_file)} ) (C {<awk>} {(SQ <'{print $1; exit}'>)}) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } spids: [410] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName def_fs))} {<Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName fsys))} {<Id.Lit_RBracket ']'>} ) ] ) action: [ (command.Pipeline children: [ (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands:[(C {<read>} {<line>})]) body: (command.DoGroup children: [(C {<echo>} {($ Id.VSub_DollarName line)})] ) redirects: [ (redir op: <Id.Redir_Less '<'> loc: (redir_loc.Fd fd:0) arg: {($ Id.VSub_DollarName infile)} ) ] ) (C { (command_sub left_token: <Id.Left_Backtick '`'> child: (command.Pipeline children: [ (C {<egrep>} {<-v>} {(DQ <'(^[#]|-F)'>)}) (C {<'/sbin/sh'>}) ] negated: F stderr_indices: [] ) right: <Id.Backtick_Right '`'> ) } ) ] negated: F stderr_indices: [] ) ] spids: [432 452] ) ] else_action: [] redirects: [] ) ] spids: [393 407] ) ] else_action: [ (C {<echo>} {(DQ <'shareall: can\'t open '> ($ Id.VSub_DollarName fsys_file))}) ] redirects: [] ) ] redirects: [] ) ] spids: [271 284] ) ] else_action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName infile))} {<Id.Lit_Equals '='>} {(DQ <'/etc/dfs/dfstab'>)} {<Id.Lit_RBracket ']'>} ) ] ) action: [(C {<'/usr/sbin/sharemgr'>} {<start>} {<-a>})] spids: [529 546] ) ] else_action: [ (command.Pipeline children: [(C {<cat>} {($ Id.VSub_DollarName infile)}) (C {<'/sbin/sh'>})] negated: F stderr_indices: [] ) ] redirects: [] ) ] redirects: [] ) ] )