Author timonegk
Recipients timonegk
Date 2019-10-23.21:00:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571864428.26.0.327920266668.issue38570@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-10-23 21:00:28timonegksetrecipients: + timonegk
2019-10-23 21:00:28timonegksetmessageid: <1571864428.26.0.327920266668.issue38570@roundup.psfhosted.org>
2019-10-23 21:00:28timonegklinkissue38570 messages
2019-10-23 21:00:27timonegkcreate