~emersion/mrsh

ref: 1010c7a263951539d2740461e685b6ba83ea1656 mrsh/test/arithm.sh -rw-r--r-- 834 bytes
parser/arithm: fix comparison operators

> and < were recognized before >= and <=. For this reason, >= and <= were never
parsed (since they are prefixes of < and >).

Closes: https://github.com/emersion/mrsh/issues/86
shell/arithm: implement assignments

The parser still chokes on assignments with an operation.
Partially implement arithmetic expansion

The only expansion missing is assignment expansion, which requires more
discussion.

Additionally, the parser is missing variable support, e.g. $((var+1)).