Pattern: Use of deprecated $[..]
syntax
Issue: -
The $[..]
syntax was deprecated in Bash 2.0 and replaced with the standard $((..))
syntax from Korn shell.
Example of incorrect code:
n=1
n=$[n+1]
Example of correct code:
n=1
n=$((n+1))
Pattern: Use of deprecated $[..]
syntax
Issue: -
The $[..]
syntax was deprecated in Bash 2.0 and replaced with the standard $((..))
syntax from Korn shell.
Example of incorrect code:
n=1
n=$[n+1]
Example of correct code:
n=1
n=$((n+1))