You can use variable names without $
in bash:
a=3
echo $(( a - 1 ))
Note on compatibility: in Bash, you have to prefix special variables like $?
, unlike Zsh.
The work is always in progress.
You can use variable names without $
in bash:
a=3
echo $(( a - 1 ))
Note on compatibility: in Bash, you have to prefix special variables like $?
, unlike Zsh.