[New-bugs-announce] [issue13195] subprocess: args with shell=True is not documented on Windows
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)
nosy: docs at python, techtonik
title: subprocess: args with shell=True is not documented on Windows
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce