This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Nacsa.Kristóf
Recipients Nacsa.Kristóf, docs@python
Date 2012-09-18.12:19:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1347970794.78.0.910609008076.issue15962@psf.upfronthosting.co.za>
In-reply-to
Content
The Python docs faq says that due to a bug in Windows NT's cmd.exe, the output redirection and piping won't work when started from file extension.

http://docs.python.org/faq/windows.html#how-do-i-make-python-scripts-executable
http://docs.python.org/py3k/faq/windows.html#how-do-i-make-python-scripts-executable

This is actually fixed in Windows, but the fix is disabled by default, and you need to enable it in regedit, the keyword is "InheritConsoleHandles".

Proof & Details:
http://support.microsoft.com/default.aspx?kbid=321788

It would be great if the docs could refer to this fix, as the docs is the major source of information for many.
History
Date User Action Args
2012-09-18 12:19:54Nacsa.Kristófsetrecipients: + Nacsa.Kristóf, docs@python
2012-09-18 12:19:54Nacsa.Kristófsetmessageid: <1347970794.78.0.910609008076.issue15962@psf.upfronthosting.co.za>
2012-09-18 12:19:54Nacsa.Kristóflinkissue15962 messages
2012-09-18 12:19:53Nacsa.Kristófcreate