NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/45430: ash uses argv[0] as $0 for scripts without #!



The following reply was made to PR bin/45430; it has been noted by GNATS.

From: Nikolai Kondrashov <spbnick%gmail.com@localhost>
To: "Roland C. Dowdeswell" <elric%imrryr.org@localhost>
Cc: gnats-bugs%NetBSD.org@localhost, David Holland 
<dholland-bugs%netbsd.org@localhost>, 
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/45430: ash uses argv[0] as $0 for scripts without #!
Date: Tue, 08 Nov 2011 16:13:06 +0200

 On 11/07/2011 10:35 PM, Roland C. Dowdeswell wrote:
 > This is quite old but I can reproduce the issue with NetBSD's /bin/sh,
 > but only if your script is executed by the shell rather than the kernel.
 > I.e. if the shell script does not begin with #!/bin/sh.
 
 Thank you. Yes, this is what was stated in the original bug report (the
 first message), albeit not so clearly.
 
 Sincerely,
 Nick
 


Home | Main Index | Thread Index | Old Index