[issue38570] Shlex does not parse commands containing single quotes correctly

2019-10-26 Thread timonegk
timonegk added the comment: Okay, thanks a lot. I am closing this since it is not a bug then. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38570] Shlex does not parse commands containing single quotes correctly

2019-10-23 Thread timonegk
New submission from timonegk : 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=$'\'&#x