When trying to run a simple bash script to increase the number with the previous 0 by 1, the original number is interpreted incorrectly.
#!/bin/bash number=0026 echo $number echo $((number)) echo $((number+1))
When this command is executed, I get the output:
0026 22 23
Why is this happening?
source share