(command.CommandList
  children: [
    (command.Sentence
      child: 
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:version)
              op: assign_op.Equal
              rhs: {(DQ <0.01>)}
              spids: [4]
            )
          ]
        )
      terminator: <Id.Op_Semi _>
    )
    (command.ShFunction
      name: fibonacci
      body: 
        (BraceGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:n)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (braced_var_sub
                        token: <Id.VSub_Number 1>
                        suffix_op: 
                          (suffix_op.Unary
                            tok: <Id.VTest_ColonQMark ':?'>
                            arg_word: 
                              {
                                <
'If you want the nth fibonacci number, you must supply n as the first parameter.'
                                >
                              }
                          )
                      )
                    }
                  spids: [18]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$n')} {<-le>} {<1>} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<echo>} {($ Id.VSub_DollarName '$n')})]
                  spids: [26 39]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:l)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (C {<fibonacci>} 
                                {
                                  (word_part.ArithSub
                                    anode: 
                                      (arith_expr.Binary
                                        op_id: Id.Arith_Minus
                                        left: <Id.Lit_ArithVarLike n>
                                        right: {<Id.Lit_Digits 1>}
                                      )
                                  )
                                }
                              )
                          )
                        }
                      spids: [50]
                    )
                  ]
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:r)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: 
                              (C {<fibonacci>} 
                                {
                                  (word_part.ArithSub
                                    anode: 
                                      (arith_expr.Binary
                                        op_id: Id.Arith_Minus
                                        left: <Id.Lit_ArithVarLike n>
                                        right: {<Id.Lit_Digits 2>}
                                      )
                                  )
                                }
                              )
                          )
                        }
                      spids: [65]
                    )
                  ]
                )
                (C {<echo>} 
                  {
                    (word_part.ArithSub
                      anode: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Plus
                          left: <Id.Lit_ArithVarLike l>
                          right: <Id.Lit_ArithVarLike r>
                        )
                    )
                  }
                )
              ]
            )
          ]
        )
    )
    (command.ForEach
      iter_name: i
      iter_words: [{<1>} {<2>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:result)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<fibonacci>} {($ Id.VSub_DollarName '$i')})
                      )
                    }
                  spids: [110]
                )
              ]
            )
            (C {<echo>} 
              {(DQ <'i='> ($ Id.VSub_DollarName '$i') <' result='> ($ Id.VSub_DollarName '$result'))}
            )
          ]
        )
    )
  ]
)