(command.CommandList children: [ (command.ShAssignment left: <Id.Lit_VarLike 'size='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'size='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'size='> name:size) op: assign_op.Equal rhs: {<1024>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'number='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'number='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'number='> name:number) op: assign_op.Equal rhs: {<100>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'base='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'base='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'base='> name:base) op: assign_op.Equal rhs: {<9999>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'group='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'group='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'group='> name:group) op: assign_op.Equal rhs: {(DQ <239.255.255.101>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'interface='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'interface='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'interface='> name:interface) op: assign_op.Equal rhs: {(DQ <cxgb0>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'remote='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'remote='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'remote='> name:remote) op: assign_op.Equal rhs: {(DQ <ssh>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'command='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'command='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'command='> name:command) op: assign_op.Equal rhs: {(DQ <'/zoo/tank/users/gnn/svn/Projects/head-exar/src/tools/tools/mctest/mctest'>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'gap='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'gap='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'gap='> name:gap) op: assign_op.Equal rhs: {<1000>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'args='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'args='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'args='> name:args) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <getopt> more_env: [] words: [ {<getopt>} {<s> <Id.Lit_Colon ':'> <g> <Id.Lit_Colon ':'> <n> <Id.Lit_Colon ':'> <c> <Id.Lit_Colon ':'> <l> <Id.Lit_Colon ':'> <f> <Id.Lit_Colon ':'> <b> <Id.Lit_Colon ':'> } {($ Id.VSub_Star '*')} ] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '?')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} { (SQ < 'Usage: mctest_run -l local_interface -f foreign_interface -s size -g group -n number -c remote command host1 host2 hostN' > ) } ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<2>}) ] spids: [84 97] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <set> more_env: [] words: [{<set>} {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {($ Id.VSub_DollarName args)}] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'count='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'count='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'count='> name:count) op: assign_op.Equal rhs: {<0>} ) ] redirects: [] ) (command.ForEach keyword: <Id.KW_For for> iter_names: [i] iterable: (for_iter__Args) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_DollarName i))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <-s> pattern: (pat.Words words:[{<-s>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'size='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'size='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'size='> name:size) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-n> pattern: (pat.Words words:[{<-n>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'number='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'number='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'number='> name:number) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-g> pattern: (pat.Words words:[{<-g>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'group='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'group='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'group='> name:group) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-c> pattern: (pat.Words words:[{<-c>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'command='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'command='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'command='> name:command) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-l> pattern: (pat.Words words:[{<-l>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'local_interface='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'local_interface='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'local_interface='> name: local_interface ) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-f> pattern: (pat.Words words:[{<-f>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'foreign_interface='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'foreign_interface='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'foreign_interface='> name: foreign_interface ) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <-b> pattern: (pat.Words words:[{<-b>}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'base='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'base='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'base='> name:base) op: assign_op.Equal rhs: {($ Id.VSub_Number 3)} ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>} {<2>}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <--> pattern: (pat.Words words:[{<-->}]) middle: <Id.Right_CasePat _> action: [ (command.Sentence child: (command.Simple blame_tok: <shift> more_env: [] words: [{<shift>}] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) (command.ControlFlow keyword:<Id.ControlFlow_Break break>) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.Sentence child: (command.Simple blame_tok:<shift> more_env:[] words:[{<shift>}] redirects:[] do_fork:T) terminator: <Id.Op_Semi _> ) (command.ShAssignment left: <Id.Lit_VarLike 'current='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'current='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'current='> name:current) op: assign_op.Equal rhs: {<0>} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'now='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'now='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'now='> name:now) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <date> more_env: [] words: [{<date>} {(DQ <'+%Y%m%d%H%M'>)}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ForEach keyword: <Id.KW_For for> iter_names: [host] iterable: (for_iter.Words words:[{($ Id.VSub_Star '*')}]) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.ShAssignment left: <Id.Lit_VarLike 'output='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'output='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'output='> name:output) op: assign_op.Equal rhs: {($ Id.VSub_DollarName host) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\_'> ch: _ ) ($ Id.VSub_DollarName interface) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\_'> ch:_) ($ Id.VSub_DollarName size) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\_'> ch:_) ($ Id.VSub_DollarName number) (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\.'> ch: . ) ($ Id.VSub_DollarName now) } ) ] redirects: [] ) (command.Sentence child: (command.Simple blame_tok: <Id.VSub_DollarName '$remote'> more_env: [] words: [ {($ Id.VSub_DollarName remote)} {($ Id.VSub_DollarName host)} {($ Id.VSub_DollarName command)} {<-r>} {<-M>} {($ Id.VSub_Pound '#')} {<-b>} {($ Id.VSub_DollarName base)} {<-g>} {($ Id.VSub_DollarName group)} {<-m>} {($ Id.VSub_DollarName current)} {<-n>} {($ Id.VSub_DollarName number)} {<-s>} {($ Id.VSub_DollarName size)} {<-i>} {($ Id.VSub_DollarName foreign_interface)} ] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: {($ Id.VSub_DollarName output)} ) ] do_fork: T ) terminator: <Id.Op_Amp _> ) (command.Simple blame_tok: <sleep> more_env: [] words: [{<sleep>} {<1>}] redirects: [] do_fork: T ) (command.Sentence child: (command.ShAssignment left: <Id.Lit_VarLike 'current='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'current='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'current='> name:current) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <expr> more_env: [] words: [ {<expr>} {($ Id.VSub_DollarName current)} {<Id.Lit_Other '+'>} {<1>} ] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) terminator: <Id.Op_Semi _> ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.Simple blame_tok: <Id.VSub_DollarName '$command'> more_env: [] words: [ {($ Id.VSub_DollarName command)} {<-M>} {($ Id.VSub_Pound '#')} {<-b>} {($ Id.VSub_DollarName base)} {<-g>} {($ Id.VSub_DollarName group)} {<-n>} {($ Id.VSub_DollarName number)} {<-s>} {($ Id.VSub_DollarName size)} {<-i>} {($ Id.VSub_DollarName local_interface)} {<-t>} {($ Id.VSub_DollarName gap)} ] redirects: [ (Redir op: <Id.Redir_Great '>'> loc: (redir_loc.Fd fd:1) arg: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <uname> more_env: [] words: [{<uname>} {<-n>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\_'> ch:_) ($ Id.VSub_DollarName size) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\_'> ch:_) ($ Id.VSub_DollarName number) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\.'> ch:.) ($ Id.VSub_DollarName now) } ) ] do_fork: T ) ] )