Message321213
In some cases, functions defined in subprocess modules pass wrong command to win32 shell.
Python 3.8.0a0 (heads/master:4629c0d531, Jul 7 2018, 16:37:33) [MSC v.1914 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>> subprocess.check_output('cmd /c echo hello', shell=1)
b'hello"\r\n'
The result is as same as the following command run with cmd.exe:
C:\> %COMSPEC% /c "cmd /c echo hello"
hello"
Specifying /s switch fixes the issue:
C:\> %COMSPEC% /s /c "cmd /c echo hello"
hello |
|
Date |
User |
Action |
Args |
2018-07-07 10:30:07 | mandel59 | set | recipients:
+ mandel59, paul.moore, tim.golden, zach.ware, steve.dower |
2018-07-07 10:30:07 | mandel59 | set | messageid: <1530959407.22.0.56676864532.issue34064@psf.upfronthosting.co.za> |
2018-07-07 10:30:06 | mandel59 | link | issue34064 messages |
2018-07-07 10:30:06 | mandel59 | create | |
|