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: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Subject: Re: bin/45430: ash uses argv[0] as $0 for scripts without #!
Date: Mon, 07 Nov 2011 00:24:32 +0200

 On 11/07/2011 12:20 AM, Nikolai Kondrashov wrote:
 >   _=_--; exec lua "`command -v \"\$0\"`" "\$@"
 
 This is, of course, wrong and should be:
 
 _=_--; exec lua "`command -v \"\$0\"`" "$@"
 


Home | Main Index | Thread Index | Old Index