let - Evaluate arithmetic expression

Synopsis

let arg ...

Description

You can use let to evaluate each arg as an arithmetic expression. You may need to quote each arg since many arithmetic operators have a special meaning to qsh.

Operands

Each arg is evaluated as an arithmetic expression.

Exit status

  • 0 when the value of the last expression is non-zero
  • 1 when the value of the last expression is zero
Examples
Add one to the variable x.

let x=x+1