I was surprised to read this in the Bash manual, describing Arithmetic Evaluation:
Within an expression, shell variables may also be referenced by name without using the parameter expansion syntax.
I tried it out, and indeed, var behaves the same as $var:
❯ var=9
❯ echo $(( var + 5 ))
14
❯ (( var < 10 )) && echo 'single digits!'
single digits!
Is it considered bad practice to do so? Is it portable to other shells, or is this a Bashism?