[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug] env python -O
From: |
Paul Jarc |
Subject: |
Re: [bug] env python -O |
Date: |
Wed, 05 Nov 2003 11:25:27 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Herve Autret <address@hidden> 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