(command.CommandList children: [ (command.ShAssignment left: <Id.Lit_VarLike 'last_testcase='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'last_testcase='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'last_testcase='> name:last_testcase) op: assign_op.Equal rhs: {<16>} ) ] redirects: [] ) (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <1..> ($ Id.VSub_DollarName last_testcase))}] redirects: [] do_fork: T ) (command.ForEach keyword: <Id.KW_For for> iter_names: [n] iterable: (for_iter.Words words: [ { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <seq> more_env: [] words: [{<seq>} {<1>} {($ Id.VSub_DollarName last_testcase)}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ] ) semi_tok: <Id.Op_Semi _> body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.ShAssignment left: <Id.Lit_VarLike 'todomsg='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'todomsg='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'todomsg='> name:todomsg) op: assign_op.Equal rhs: {(DQ )} ) ] redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName n)} {<-eq>} {<11>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'todomsg='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'todomsg='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'todomsg='> name:todomsg) op: assign_op.Equal rhs: {(DQ <' # TODO: racy testcase'>)} ) ] redirects: [] ) ] spids: [138 151] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (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: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <Id.Left_DollarParen '$('> more_env: [] words: [ { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <dirname> more_env: [] words: [{<dirname>} {($ Id.VSub_Number 0)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) <'/flock_helper'> } {<.>} {($ Id.VSub_DollarName n)} ] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Pipeline children: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ ($ Id.VSub_DollarName output))}] redirects: [] do_fork: T ) (command.Simple blame_tok: <grep> more_env: [] words: [{<grep>} {<-q>} {<SUCCEED>}] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _>] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} {(DQ <'ok '> ($ Id.VSub_DollarName n) ($ Id.VSub_DollarName todomsg))} ] redirects: [] do_fork: T ) ] spids: [179 196] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <echo> more_env: [] words: [ {<echo>} {(DQ <'not ok '> ($ Id.VSub_DollarName n) ($ Id.VSub_DollarName todomsg))} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ ($ Id.VSub_DollarName output))}] redirects: [(Redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] right: <Id.KW_Done done> ) redirects: [] ) ] )