Commit 7db1f20
committed
Popen() list-arg pager process without shell=True
When the first argument to subprocess.Popen is a list, setting
shell=True causes elements of the list to be discarded on POSIX
platforms.
Setting shell=False (the default) causes Popen() to invoke the first
argument of the list and pass the rest of the arguments using
"os.execvpe()-like behavior to execute the child program", per the
subprocess docs at
* https://docs.python.org/3/library/subprocess.html1 parent 2a0e3ba commit 7db1f20
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| |||
0 commit comments