經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供