On Tue, May 12, 2009 at 09:46:29PM +0200, Marcus von Appen wrote: > On, Tue May 12, 2009, James Paige wrote: > > > On Tue, May 12, 2009 at 08:58:02PM +0200, Marcus von Appen wrote: > > > #!/... > > > > > > line is usually dealt with correctly by env(), which in turn is executed > > > correctly by bourne-compatible shells. > > > > Not unless the executable bit is set. > > sh myfoo.py > > works just great, even without the executable bit (as supposed by bourne > shells). No it does not. Please do not spread disinformation. mg@platonas:~ $ cat example.py #!/usr/bin/env python if 2 * 2 == 4: print "hello" mg@platonas:~ $ sh example.py example.py: 4: Syntax error: end of file unexpected (expecting "then") mg@platonas:~ $ python example.py hello Marius Gedminas -- Programs that write programs are the happiest programs in the world. -- Andrew Hume
Attachment:
signature.asc
Description: Digital signature