[issue22454] Adding the opposite function of shlex.split()

2019-09-06 Thread Daniel Himmelstein
Daniel Himmelstein added the comment: I am interested in shlex.join as a way to log subprocess.CompletedProcess.args as a string that users could run in their terminals. I initially assumed that this was also the scope of shlex.join. However, it seems that shlex.join does not accept all

[issue22454] Adding the opposite function of shlex.split()

2019-05-29 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue22454] Adding the opposite function of shlex.split()

2019-05-29 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset ca804955927dddb6ae5a846dbc0248a932be9a4e by Vinay Sajip (Bo Bayles) in branch 'master': bpo-22454: Add shlex.join() (the opposite of shlex.split()) (GH-7605) https://github.com/python/cpython/commit/ca804955927dddb6ae5a846dbc0248a932be9a4e

[issue22454] Adding the opposite function of shlex.split()

2019-04-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22454] Adding the opposite function of shlex.split()

2019-04-11 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2018-06-10 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +7228 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue22454] Adding the opposite function of shlex.split()

2018-06-07 Thread Matthijs Kooijman
Matthijs Kooijman added the comment: One usecase that such a function would be well-suited for is for *displaying* commands being executed. Then, the commands will be executed as a command+args array, but can be displayed unambiguously in log output. --

[issue22454] Adding the opposite function of shlex.split()

2018-06-07 Thread Vinay Sajip
Vinay Sajip added the comment: I'm +0 on the idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22454] Adding the opposite function of shlex.split()

2018-06-06 Thread R. David Murray
R. David Murray added the comment: I like it, myself, though there is some danger in promoting the idea that this is a "safe" operation. It theoretically should be, but it increases the attack surface slightly if you actually use it (that is, using shell=False is always safer, by at least

[issue22454] Adding the opposite function of shlex.split()

2018-06-06 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Vinay, You made the most recent changes to shlex, so I was wondering what you thought of this suggestion. Thanks! -- nosy: +cheryl.sabella, vinay.sajip ___ Python tracker

[issue22454] Adding the opposite function of shlex.split()

2018-04-25 Thread Matthijs Kooijman
Change by Matthijs Kooijman : -- nosy: +Matthijs Kooijman ___ Python tracker ___

[issue22454] Adding the opposite function of shlex.split()

2014-09-21 Thread Sworddragon
New submission from Sworddragon: There is currently shlex.split() that is for example useful to split a command string and pass it to subprocess.Popen with shell=False. But I'm missing a function that does the opposite: Building the command string from a list that could for example then be

[issue22454] Adding the opposite function of shlex.split()

2014-09-21 Thread Ben Roberts
Ben Roberts added the comment: ' '.join(shlex.quote(x) for x in split_command) -- nosy: +roippi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22454 ___

[issue22454] Adding the opposite function of shlex.split()

2014-09-21 Thread Sworddragon
Sworddragon added the comment: Yes, it is possible to do this with a few other commands. But I think it would be still a nice enhancement to have a direct function for it. -- ___ Python tracker rep...@bugs.python.org

[issue22454] Adding the opposite function of shlex.split()

2014-09-21 Thread Ben Roberts
Ben Roberts added the comment: For the record I am on board with a shlex.join. Even though the implementation is simple: - It is not obvious to many users if there are any gotchas by doing a ' '.join yourself, /even if/ you know that strings with spaces in them need to pass through