Check following simple script:
#!/usr/bbin/python
print("hello world!")
I misspelled python
path intentionally. On Linux Bash
, it reported following error:
$ ./hello.py
-bash: ./hello.py: /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
:
$ ./hello.py
ksh: ./hello.py: No such file or directory
It gave an illusion that hello.py
didn’t exist. So be careful about this error information if you use ksh
.