R. David Murray added the comment:

Yes, the point of shlex.quote is to get something that is *not* special to the 
shell, and therefore safe to pass to the shell.  If you *want* an & in your 
command, just pass it, don't quote it.  quote is for *untrusted* data, like 
filenames received from a user.

Or better, don't use shell=True all.

(list2cmdline has a different purpose, unique to windows)

----------
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27457>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to