Message256043
First some expected output:
```
# from cmd.exe
C:\Users\Anthony>echo hi{1}
hi{1}
# from MINGW
$ echo hi{1}
hi{1}
```
```
# On ubuntu
$ echo 'hi{1}'
hi{1}
$ python3.5 -c "import subprocess; print(subprocess.check_output(('echo', 'hi{1}')))"
b'hi{1}\n'
```
Now for the unexpected output (produced only by python on windows) (notice the missing braces)
```
C:\Python27\python.exe -c "import subprocess; print(subprocess.check_output(('echo', 'hi{1}')))"
hi1
C:\Python34\python.exe -c "import subprocess; print(subprocess.check_output(('echo', 'hi{1}')))"
b'hi1\n'
C:\Python35\python.exe -c "import subprocess; print(subprocess.check_output(('echo', 'hi{1}')))"
b'hi1\n'
```
Peculiarly, these all produce the output I expect:
```
C:\Python35\python.exe -c "import subprocess; print(subprocess.check_output(('echo', 'hi {1}')))"
b'hi {1}\n'
C:\Python35\python.exe -c "import subprocess; print(subprocess.check_output(('echo', 'hi{1}'), shell=True))"
b'hi{1}\r\n'
```
I don't have access to 3.6, but I imagine the issue exists there too. |
|
Date |
User |
Action |
Args |
2015-12-07 02:50:00 | Anthony Sottile | set | recipients:
+ Anthony Sottile, paul.moore, tim.golden, zach.ware, steve.dower |
2015-12-07 02:50:00 | Anthony Sottile | set | messageid: <1449456600.09.0.498208325206.issue25815@psf.upfronthosting.co.za> |
2015-12-07 02:49:59 | Anthony Sottile | link | issue25815 messages |
2015-12-07 02:49:59 | Anthony Sottile | create | |
|