[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 __

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

2019-10-25 Thread Anthony Sottile
Anthony Sottile added the comment: Try with `sh`: (it prompts for continuation, I pressed ^D to end it) $ export F=$'\'' > > > > > sh: 8: Syntax error: Unterminated quoted string dollar-sign strings are a `bash` extension, I don't think they're supported by *sh*lex (maybe if there was

[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=$'\'' and pasting the output in bash, no further quotation marks are required.