Pattern: Use of undefined ++
/--
Issue: -
Prefix and postfix increment and decrement are extensions in bash and ksh. They're not supported in dash or POSIX sh.
Example of incorrect code:
#!/bin/sh
i=1
echo "$((i++))"
Example of correct code:
#!/bin/sh
i=1
echo "$i"
i=$((i+1))