(command.CommandList
  children: [
    (C {<set>} {<-e>})
    (command.ShFunction
      name: test_version
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:version)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number '$1')}
                  spids: [19]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$version'))} 
                              {<Id.Lit_Equals '='> <Id.Lit_Equals '='>} {(DQ <jruby-1.7>)} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<bash>} {<--login>} {<-c>} 
                      {
                        (DQ <'rvm install '> ($ Id.VSub_DollarName '$version') <' && rvm use '> 
                          ($ Id.VSub_DollarName '$version') <' && rvm get head && '> <'       which ruby && '> <'       git clean -f && '> 
                          <'       gem install bundler && bundle && '> <'       rake test'>
                        )
                      }
                    )
                  ]
                  spids: [23 42]
                )
              ]
              else_action: [
                (C {<bash>} {<--login>} {<-c>} 
                  {
                    (DQ <'rvm install '> ($ Id.VSub_DollarName '$version') <' && rvm use '> 
                      ($ Id.VSub_DollarName '$version') <' && '> <'       which ruby && '> <'       git clean -f && '> 
                      <'       gem install bundler && bundle && '> <'       rake test &&\n'> <'       cd ../conformance && make test_ruby'>
                    )
                  }
                )
              ]
            )
          ]
        )
    )
    (C {<test_version>} {($ Id.VSub_Number '$1')})
  ]
)