 |
shell - checking an argument to a bash script is a string of all digits - Unix & Linux Stack Exchang
Try running it with bash foo.sh bar. If your going to write a bash script, you need to use bash. The [[ and ]] used above are only in bash which is a Bourne shell derivative. sh means Bourne SHell and may not be the same as bash. I think debian uses dash
unix.stackexchange.com |
 |