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