New submission from Charles Daffern: The shlex.quote and pipes.quote functions do not quote shell keywords.
Example shell keywords: done, time, coproc, while Presumably the intent of the quote functions is to prevent the resulting string from altering the syntax of the script it is inserted into, which is why I think these need to be quoted. We can't possibly know every shell keyword, so the only sensible thing to do here is to quote everything. ---------- components: Extension Modules messages: 258292 nosy: Charles Daffern priority: normal severity: normal status: open title: shlex.quote and pipes.quote do not quote shell keywords type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26124> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com