Issue 772029: Make commands.getstatusoutput work on Windows (original) (raw)

Issue772029

Created on 2003-07-16 02:00 by emin63, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
commands.diff emin63,2003-07-16 02:00 Diff between commands.py version 1.14 from cvs and fixed version.
Messages (2)
msg44281 - (view) Author: Emin Martinian (emin63) Date: 2003-07-16 02:00
The commands.getstatusoutput function does not currently work on Windows because windows doesn't like curly braces in shell commands. By checking the name of the OS using os.name and not using curly braces when os.name == 'dos' or os.name == 'nt', the getstatusoutput can be made to work on Windows.
msg44282 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-15 13:23
Logged In: YES user_id=469548 The commands module is going to stay Unix-specific. There are too many potential issues with trying to support the various win32 command interpreters. See http://mail.python.org/pipermail/python-dev/2004-August/047774.ht ml and its responses.
History
Date User Action Args
2022-04-10 16:09:59 admin set github: 38857
2003-07-16 02:00:45 emin63 create