[Python-Dev] subprocess shell=True on Windows doesn't escape ^ character (original) (raw)

Tim Golden mail at timgolden.me.uk
Sun Jun 15 08:07:18 CEST 2014


On 15/06/2014 02:22, Ryan Gonzalez wrote:

Of course cmd.exe is hardcoded;

Of course it's not:

(from Lib/subprocess.py)

comspec = os.environ.get("COMSPEC", "cmd.exe")

I don't often expect, in these post-command.com days, to get anything other than cmd.exe. But alternative command processors are certainly possible.

TJG



More information about the Python-Dev mailing list