(command.CommandList
  children: [
    (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 '['>}
                        {(DQ ($ Id.VSub_Pound '#'))}
                        {<Id.KW_Bang '!'> <Id.Lit_Equals '='>}
                        {<3>}
                        {<Id.Lit_RBracket ']'>}
                      ]
                      redirects: []
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          then_kw: <Id.KW_Then then>
          action: [
            (command.Simple
              blame_tok: <echo>
              more_env: []
              words: [{<echo>} {(DQ <'Usage: add-memzip.sh input.hex output.hex file-directory'>)}]
              redirects: []
              do_fork: T
            )
            (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [4 20]
        )
      ]
      else_action: []
      fi_kw: <Id.KW_Fi fi>
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'input_hex='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'input_hex='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'input_hex='> name:input_hex)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 1)}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'output_hex='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'output_hex='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'output_hex='> name:output_hex)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 2)}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'memzip_src_dir='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'memzip_src_dir='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'memzip_src_dir='> name:memzip_src_dir)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Number 3)}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'input_bin='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'input_bin='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'input_bin='> name:input_bin)
          op: assign_op.Equal
          rhs: {(${ Id.VSub_Name input_hex) <.bin>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'output_bin='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'output_bin='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'output_bin='> name:output_bin)
          op: assign_op.Equal
          rhs: {(${ Id.VSub_Name output_hex) <.bin>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'zip_file='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'zip_file='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'zip_file='> name:zip_file)
          op: assign_op.Equal
          rhs: {(${ Id.VSub_Name output_hex) <.zip>}
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'zip_base='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'zip_base='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'zip_base='> name:zip_base)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Simple
                    blame_tok: <basename>
                    more_env: []
                    words: [{<basename>} {(${ Id.VSub_Name zip_file)}]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Eof_RParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'zip_dir='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'zip_dir='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'zip_dir='> name:zip_dir)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Simple
                    blame_tok: <dirname>
                    more_env: []
                    words: [{<dirname>} {(${ Id.VSub_Name zip_file)}]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Eof_RParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.ShAssignment
      left: <Id.Lit_VarLike 'abs_zip_dir='>
      pairs: [
        (AssignPair
          left: <Id.Lit_VarLike 'abs_zip_dir='>
          lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'abs_zip_dir='> name:abs_zip_dir)
          op: assign_op.Equal
          rhs: 
            {
              (CommandSub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Simple
                    blame_tok: <realpath>
                    more_env: []
                    words: [{<realpath>} {(${ Id.VSub_Name zip_dir)}]
                    redirects: []
                    do_fork: T
                  )
                right: <Id.Eof_RParen _>
              )
            }
        )
      ]
      redirects: []
    )
    (command.Simple
      blame_tok: <rm>
      more_env: []
      words: [{<rm>} {<-f>} {(${ Id.VSub_Name zip_file)}]
      redirects: []
      do_fork: T
    )
    (command.Subshell
      left: <Id.Op_LParen _>
      child: 
        (command.CommandList
          children: [
            (command.Sentence
              child: 
                (command.Simple
                  blame_tok: <cd>
                  more_env: []
                  words: [{<cd>} {(${ Id.VSub_Name memzip_src_dir)}]
                  redirects: []
                  do_fork: T
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Simple
              blame_tok: <zip>
              more_env: []
              words: [
                {<zip>}
                {<-0>}
                {<-r>}
                {<-D>}
                {(${ Id.VSub_Name abs_zip_dir) <'/'> (${ Id.VSub_Name zip_base)}
                {<.>}
              ]
              redirects: []
              do_fork: T
            )
          ]
        )
      right: <Id.Right_Subshell _>
      redirects: []
    )
    (command.Simple
      blame_tok: <objcopy>
      more_env: []
      words: [
        {<objcopy>}
        {<-I>}
        {<ihex>}
        {<-O>}
        {<binary>}
        {(${ Id.VSub_Name input_hex)}
        {(${ Id.VSub_Name input_bin)}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <cat>
      more_env: []
      words: [{<cat>} {(${ Id.VSub_Name input_bin)} {(${ Id.VSub_Name zip_file)}]
      redirects: [
        (Redir
          op: <Id.Redir_Great '>'>
          loc: (redir_loc.Fd fd:1)
          arg: {(${ Id.VSub_Name output_bin)}
        )
      ]
      do_fork: T
    )
    (command.Simple
      blame_tok: <objcopy>
      more_env: []
      words: [
        {<objcopy>}
        {<-I>}
        {<binary>}
        {<-O>}
        {<ihex>}
        {(${ Id.VSub_Name output_bin)}
        {(${ Id.VSub_Name output_hex)}
      ]
      redirects: []
      do_fork: T
    )
    (command.Simple
      blame_tok: <echo>
      more_env: []
      words: [
        {<echo>}
        {
          (DQ <'Added '> (${ Id.VSub_Name memzip_src_dir) <' to '> (${ Id.VSub_Name input_hex) 
            <' creating '> (${ Id.VSub_Name output_hex)
          )
        }
      ]
      redirects: []
      do_fork: T
    )
  ]
)