[issue13195] subprocess: args with shell=True is not documented on Windows
New submission from anatoly techtonik <techtonik@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@python components: Documentation, Library (Lib) messages: 145662 nosy: docs@python, techtonik priority: normal severity: normal status: open title: subprocess: args with shell=True is not documented on Windows _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
STINNER Victor <victor.stinner@haypocalc.com> added the comment: See also issues #7839, #8972 and #10197. ---------- nosy: +haypo _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
anatoly techtonik <techtonik@gmail.com> added the comment: Looks like a can of worms. For now I'll be pretty fine if this stuff is at least properly documented. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
STINNER Victor <victor.stinner@haypocalc.com> added the comment:
For now I'll be pretty fine if this stuff is at least properly documented.
Can you propose a document patch describing the current behaviour? ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
anatoly techtonik <techtonik@gmail.com> added the comment: Certainly not right now as I don't have development environment setup. Perhaps in a few days if somebody pings me. It could be a lot easier with online editor, of course - http://code.google.com/p/pydotorg/issues/detail?id=6 ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
Changes by Ross Lagerwall <rosslagerwall@gmail.com>: ---------- nosy: +rosslagerwall _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
STINNER Victor <victor.stinner@haypocalc.com> added the comment:
Certainly not right now as I don't have development environment setup
See our development guide to get such environment: http://docs.python.org/devguide/setup.html
It could be a lot easier with online editor
Would like like to work on this project? (provide an online editor) ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
anatoly techtonik <techtonik@gmail.com> added the comment: On Mon, Oct 17, 2011 at 3:24 PM, STINNER Victor <report@bugs.python.org> wrote:
Certainly not right now as I don't have development environment setup
See our development guide to get such environment: http://docs.python.org/devguide/setup.html
I know. There is better tool at https://bitbucket.org/techtonik/devinabox but I have only 500Mb left on my system drive and there are still more problems I need to handle.
It could be a lot easier with online editor
Would like like to work on this project? (provide an online editor)
Do you mean would I like to work on it? Actually, I made a prototype on AppEngine that waits for JS guru to tune CodeMirror interface. If somebody is interested to help, I've just uploaded the code to http://code.google.com/p/pydotorg/source/browse/?repo=doceditor ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
Changes by Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>: ---------- nosy: +Arfrever _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
Martin Panter added the comment: I think the documentation changes made for Issue 16115 should address your first question (shell=False). For shell=True, see the discussion at Issue 20344. Perhaps you can review my patch. ---------- dependencies: +test the executable arg to Popen() and improve related docs nosy: +martin.panter resolution: -> duplicate status: open -> closed superseder: -> subprocess.check_output() docs misrepresent what shell=True does _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue13195> _______________________________________
participants (5)
-
anatoly techtonik
-
Arfrever Frehtes Taifersar Arahesis
-
Martin Panter
-
Ross Lagerwall
-
STINNER Victor