Skip to content

Instantly share code, notes, and snippets.

@Prototyped
Created October 20, 2023 15:55
Show Gist options
  • Select an option

  • Save Prototyped/0885dab42b553d204a112a9390439eb6 to your computer and use it in GitHub Desktop.

Select an option

Save Prototyped/0885dab42b553d204a112a9390439eb6 to your computer and use it in GitHub Desktop.
Bad interpreter
# 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