Can't execute a script

Gary W. Swearingen garys at opusnet.com
Fri Sep 9 18:56:46 PDT 2005


"N.J. Thomas" <njt at ayvali.org> writes:

> Normally, that doesn't matter because most Unix utilities are
> multi-eol-format aware, but you can't have it in the shebang line
> because the OS interprets the extra carriage as part of the command, so
> it is looking for /bin/sh^M, which doesn't exist.

Know any reason that shouldn't be "fixed"?  POSIX requirement maybe?

What software reads the whole shebang line?  (The "sh" shell apparently
reads at least part of it, but I suppose some library functions do too.)

Should I write a PR on it?


More information about the freebsd-questions mailing list