4 Aug
2001
4 Aug
'01
6:06 p.m.
On Sat, 4 Aug 2001, Greg Ward
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)