I try to increment numbers prefixed with zeros. I used expr to convert them to decimal. Because bash thinks they are octal:
$ x="0008"
$ echo "$((x + 1))"
-bash: 0008: value too great for base (error token is "0008")
$ echo "$(expr "$x" + 1)" # <- works but throws SC2003
9