Re: [PATCH 2/3] binfmt_script: rewrite using parse_shell_args()

From: Kirill A. Shutemov
Date: Fri Feb 06 2009 - 15:48:07 EST


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@xxxxxxxxxxxxx> 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/

Attachment: signature.asc
Description: Digital signature