All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
$[..]
The $[..] syntax was deprecated in Bash 2.0 and replaced with the standard $((..)) syntax from Korn shell. It is therefore recommended to use $((..)) instead.
$((..))
n=1 n=$[n+1]
n=1 n=$((n+1))