[20352] in Athena Bugs
Re: linux 9.0.26: acroread
daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon May 20 18:49:30 2002
From: Greg Hudson <ghudson@MIT.EDU>
To: Alex T Prengel <alexp@mit.edu>
Cc: bugs@mit.edu
In-Reply-To: <200205202228.SAA17001@dit.mit.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Date: 20 May 2002 18:49:27 -0400
Message-Id: <1021934967.12317.104.camel@error-messages.mit.edu>
Mime-Version: 1.0
On Mon, 2002-05-20 at 18:28, Alex T Prengel wrote:
> We've verified the problem (and implemented the fix you suggest), though
> it's not clear why it's happening in the first place. We haven't had trouble
> with the script before this.
Shells are a little more flexible about executing scripts than the
kernel is. If you have a script which doesn't start with a #! line, it
will typically run okay from a shell (which will run it through
/bin/sh), but if a program execs it directly, it won't work.
Presumably netscape execs the script through /bin/sh and thus doesn't
have a problem; mozilla, on the other hand, would seem to exec the
script directly.
Bottom line: always begin a script with a #! line.