Messages in this thread | | | Date | Fri, 6 Feb 2009 22:51:29 +0200 | From | "Kirill A. Shutemov" <> | Subject | Re: [PATCH 2/3] binfmt_script: rewrite using parse_shell_args() |
| |
On Fri, Feb 06, 2009 at 12:25:56PM -0800, Andrew Morton wrote: > On Thu, 5 Feb 2009 22:47:43 +0200 > "Kirill A. Shutemov" <kirill@shutemov.name> wrote: > > > parse_shell_args() allows to use more than one argument in shebang > > What is the benefit in all of this? Why should we merge it??
Now, we have to write wrapper if we need to pass more than one argument to the interpreter.
For example, now we can't write something like
#!/usr/bin/env python -c
in shebang. It will be interpreted as /usr/bin/env "python -c" and we will get ENOENT.
With the patch it will be interpreted according to shell syntax.
-- Regards, Kirill A. Shutemov + Belarus, Minsk + ALT Linux Team, http://www.altlinux.org/ [unhandled content-type:application/pgp-signature] | |