[New-bugs-announce] [issue24625] py.exe executes #! in windows

진모씨 report at bugs.python.org
Mon Jul 13 04:19:16 CEST 2015

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
executes calculator. I guess it is bug.

components: Windows
messages: 246679
nosy: paul.moore, steve.dower, tim.golden, zach.ware, 진모씨
priority: normal
severity: normal
status: open
title: py.exe executes #! in windows
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list