Bash accepts both these syntax:
FOO=$(($BAR + 42))
and
FOO=$((BAR + 42))
Which one is correct / most portable / less prone to errors? Or are both equally valid?
Bash accepts both these syntax:
FOO=$(($BAR + 42))
and
FOO=$((BAR + 42))
Which one is correct / most portable / less prone to errors? Or are both equally valid?