[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug] env python -O
From: |
Herve Autret |
Subject: |
[bug] env python -O |
Date: |
Wed, 5 Nov 2003 09:40:21 +0100 |
Hi there
In order to run Python, one types #!/usr/bin/python in the first line
of a script to make it a Python script.
But you know that Python is not allways in /usr/bin; could be
/usr/local/bin; Furthermore, one can want to change a script's
behavior simply by changing the PATH variable, to run either
/usr/bin's or /usr/local/bin's Python.
In order to do that, on can type #!/usr/bin/env python in the script.
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 ?
% env --version
env (coreutils) 4.5.7
[...]
Note: I run it in a Mandrake 9.1
Best regards
--
Herve Autret
- [bug] env python -O,
Herve Autret <=