Re: [PATCH] Linux 2.6: shebang handling in fs/binfmt_script.c
From: Jamie Lokier
Date: Mon Feb 23 2004 - 19:01:01 EST
Paul Jackson wrote:
> 1) If argv[1] starts with a '-', consume and handle as an option
> (or possibly as a space separated list of options).
> 2) Presume the next argument, if any, is a shell script file.
>
> I would be surprised if any of the major shells are coded this way.
It would have been a "smart" thing for Perl to do, extra friendly for
programmers, auto-configuring with a test at installation time of
course. I doubt Perl does that but it wouldn't surprise me - it seems
like quite a good idea - Perl scripts using the capability would even
be portable :)
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/