(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Pipeline
                      children: [
                        (C {<echo>} {(DQ ($ Id.VSub_Number '$1'))})
                        (C {<grep>} {<-Eq>} {(DQ <'^/'>)})
                      ]
                      negated: F
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:path)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Number '$1')}
                  spids: [38]
                )
              ]
            )
          ]
          spids: [16 35]
        )
      ]
      else_action: [
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:path)
              op: assign_op.Equal
              rhs: 
                {(command_sub left_token:<Id.Left_Backtick '`'> child:(C {<pwd>})) <'/'> 
                  ($ Id.VSub_Number '$1')
                }
              spids: [44]
            )
          ]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:path)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.Pipeline
                    children: [
                      (C {<echo>} {(DQ ($ Id.VSub_DollarName '$path'))})
                      (C {<sed>} {(SQ <'s/ /%20/g'>)})
                    ]
                    negated: F
                  )
              )
            }
          spids: [56]
        )
      ]
    )
    (C {<firefox>} {(DQ <'file://'> ($ Id.VSub_DollarName '$path'))})
  ]
)