Author timonegk
Recipients timonegk
Date 2019-10-23.21:00:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Steps to reproduce:
>>> from shlex import split
>>> line = "export F=$'\\''"
>>> split(line)
ValueError: No closing quotation

However, when printing the line

>>> print(line)
export F=$'\''

and pasting the output in bash, no further quotation marks are required.
The behavior of bash is described in its man page (line 497 for me, Chapter Quoting) and occurs also when bash is called with --posix. Therefore I guess that shlex does not reproduce the posix behavior here.
Date User Action Args
2019-10-23 21:00:28timonegksetrecipients: + timonegk
2019-10-23 21:00:28timonegksetmessageid: <>
2019-10-23 21:00:28timonegklinkissue38570 messages
2019-10-23 21:00:27timonegkcreate