[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
Alex Quinn added the comment: Sorry. My mistake. Thanks for clarifying. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Philip Jenvey
Philip Jenvey 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 ___

[issue8632] subprocess doesn't handle Windows built-in commands as os.system() does

2010-05-05 Thread Alex Quinn
New submission from Alex Quinn : 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", stdout=subprocess.PIPE).communicate()[0] Does NOT