[Python-Dev] Re: cgitb.py for Python 2.2
Sat, 04 Aug 2001 21:06:51 +0300
On Sat, 4 Aug 2001, Greg Ward <firstname.lastname@example.org> wrote:
> Completely off-topic: the "/usr/bin/env" hack doesn't work with
> command-line arguments under Linux:
> $ cat t.py
> #!/usr/bin/env python -i
> print "hello"
> $ ./t.py
> /usr/bin/env: python -i: No such file or directory
That's what POSIX mandates, IIRC. Blame UNIX for using such an ugly
hack for shebang lines. It's probably better to use #!/usr/bin/python
and use binfmt_misc under linux with the correct echo > something/in/proc
magic to alias it to the correct interpreter.
Moshe Zadka - http://moshez.geek
(if you're not cool, http://moshez.org is still working)