New submission from Alex Quinn aq2...@alexquinn.org:
The documentation says subprocess replaces os.system(). However, subprocess
does not handle built-in Windows shell commands as os.system() does.
Works:
- os.system(dir /w)
- subprocess.Popen(cmd /c dir /w,
Philip Jenvey pjen...@underboss.org added the comment:
shell commands don't work because you're not specifying the shell=True argument
to Popen. This is covered in the subprocess Replacing os.system documentation
--
nosy: +pjenvey
resolution: - invalid
status: open - closed
Alex Quinn aq2...@alexquinn.org added the comment:
Sorry. My mistake. Thanks for clarifying.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8632
___