Note that you don’t need the shebang if it’s just #!/bin/sh – the kernel will invoke the shell on files that neither are binary objects nor have a shebang.
So that would be a clue – if you get a script that gets invoked directly as an executable (like, say, a CGI script) instead of being passed to an interpreter, and it doesn’t have a shebang, then it’s always a /bin/sh script.
Makeshifts last the longest.
|