Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Sep 2005 18:57:16 -0700
From:      garys@opusnet.com (Gary W. Swearingen)
To:        "N.J. Thomas" <njt@ayvali.org>
Cc:        freebsd-questions@freebsd.org, bob self <bobself@charter.net>
Subject:   Re: Can't execute a script
Message-ID:  <lpwtlpwupv.tlp@mail.opusnet.com>
In-Reply-To: <20050910004230.GD15735@ayvali.org> (N. J. Thomas's message of "Fri, 9 Sep 2005 20:42:30 -0400")
References:  <4321DC05.3050509@charter.net> <20050909212305.GC15735@ayvali.org> <43220F9F.9050002@charter.net> <20050910004230.GD15735@ayvali.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"N.J. Thomas" <njt@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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lpwtlpwupv.tlp>