[docs] [issue13195] subprocess: args with shell=True is not documented on Windows

anatoly techtonik report at bugs.python.org
Mon Oct 17 13:21:33 CEST 2011


New submission from anatoly techtonik <techtonik at gmail.com>:

For UNIX, it is said that if shell=False then you need to pass `args` as a list (if you want to pass any parameters to executable). Is that true for Windows (and perhaps other platforms) as well?

Again, for UNIX it is said that with shell=True, and args is a list - every item except the first one is an argument to the shell itself. Is it the same on Windows?


It would be better to just give advice in `shell` parameter description to "pass args as a list with shell=False or else you'll lose params in Unix. If shell=True you need to pass args as a string, because list is needed only if you need to pass arguments to shell itself."

----------
assignee: docs at python
components: Documentation, Library (Lib)
messages: 145662
nosy: docs at python, techtonik
priority: normal
severity: normal
status: open
title: subprocess: args with shell=True is not documented on Windows

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13195>
_______________________________________


More information about the docs mailing list