Created
October 20, 2023 15:55
-
-
Save Prototyped/0885dab42b553d204a112a9390439eb6 to your computer and use it in GitHub Desktop.
Bad interpreter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # amitg @ athena in ~ [16:53:46] | |
| % cat > bad-interpreter | |
| #!/no/yuo | |
| echo HELLO | |
| # amitg @ athena in ~ [16:54:08] | |
| % chmod +x bad-interpreter | |
| # amitg @ athena in ~ [16:54:16] | |
| % ./bad-interpreter | |
| zsh: ./bad-interpreter: bad interpreter: /no/yuo: no such file or directory | |
| # amitg @ athena in ~ [16:54:19] C:127 | |
| % dash | |
| $ ./bad-interpreter | |
| dash: 1: ./bad-interpreter: not found | |
| $ | |
| # amitg @ athena in ~ [16:54:37] C:127 | |
| % bash | |
| [16:54|~] | |
| amitg@athena. ./bad-interpreter | |
| bash: ./bad-interpreter: cannot execute: required file not found | |
| [16:54|~] | |
| amitg@athena. | |
| exit | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment