Beware “No such file or directory” error in using ksh

Check following simple script:

print("hello world!")

I misspelled python path intentionally. On Linux Bash, it reported following error:

$ ./
-bash: ./ /usr/bbin/python: bad interpreter: No such file or directory

It prompted me that “/usr/bbin/python” couldn’t be found. While on OpenBSD ksh:

$ ./
ksh: ./ No such file or directory

It gave an illusion that didn’t exist. So be careful about this error information if you use ksh.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.