Herve Autret <[EMAIL PROTECTED]> wrote:
> But it is not possible to run Python -O by this way, because env seems
> to look for a "Python -O" executable.
>
> Don't you think that this is clearly a bug in env ?

No.  This is a limitation of the kernel.  Different kernels behave
differently; some will discard everything after the first argument
("python"); the Linux kernel, as you've seen, passes everything after
the first space as a single argument.  env (or whatever program is
named in the #! line) has no control over this.

I'd say your best option would be to file a Python feature request, so
that you could add something to your script that would have the same
effect as the -O command-line option.  If you can do everything you
want without any extra command-line arguments, the single-argument
limit won't be a problem.


paul


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to