[Python-bugs-list] "Fix" os.system() on Windows (PR#406)

howard_b_golden@yahoo.com howard_b_golden@yahoo.com
Thu, 20 Jul 2000 20:18:21 -0400 (EDT)


Full_Name: Howard B. Golden
Version: 1.5.2
OS: Windows 9x/NT/2000
Submission from: ns.littoncorp.com (208.19.110.2)


On Windows 9x/NT/2000, os.system() doesn't return the exit code because
COMMAND.COM doesn't.

To make os.system() on Windows work like os.system() on Unix (a Good Idea-TM),
implement os.system on Windows using code similar to what was suggested by Cary
Evans in http://www.python.org/pipermail/python-list/1999-May/009409.html .

(Note: It seems to me that this change is consistent with the recent change to
posixmodule.c to make os.popen() work the same on Windows as Unix.)