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 #!



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