[issue24625] py.exe executes #! in windows

2015-07-13 Thread Paul Moore
Paul Moore added the comment: As noted, this behaviour is as documented, and is deliberately designed to execute the shebang line as either an executable (which calc is) or one of a specific set of "virtual" entries (which does not include /bin/env). -- resolution: -> not a bug status

[issue24625] py.exe executes #! in windows

2015-07-12 Thread eryksun
eryksun added the comment: To support cross-platform shebangs, the launcher special-cases the following virtual commands [1]: /usr/bin/env python /usr/bin/python /usr/local/bin/python python The "env" virtual command searches the PATH environment variable. Note that it's /usr/

[issue24625] py.exe executes #! in windows

2015-07-12 Thread R. David Murray
R. David Murray added the comment: Py.exe does not work exactly like unix. Unless you can point to documentation of py.exe that is wrong or does not cover this, this should be closed as not a bug. -- nosy: +r.david.murray ___ Python tracker

[issue24625] py.exe executes #! in windows

2015-07-12 Thread 진모씨
New submission from 진모씨: Well. A program linked to .py extension in windows (called py.exe) parses hashbang line(#!) and tries to execute program. So hashbang like this: #!/bin/env python doesn't works, and #!calc executes calculator. I guess it is bug. -- components: Windows messages: