[issue27457] shlex.quote incorrectly quotes ampersants, pipes

Xiang Zhang report at bugs.python.org
Tue Jul 5 12:08:19 EDT 2016


Xiang Zhang added the comment:

Doesn't this the expected behaviour of shlex.quote, return a shell-escaped version of the string s? If && is not quoted, how about "pwd && rm -rf ~"? I think in your case there is no need to use shlex.quote.

----------
nosy: +xiang.zhang

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


More information about the Python-bugs-list mailing list