Author Anthony Sottile
Recipients Anthony Sottile, timonegk
Date 2019-10-26.05:02:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 a bashlex module :D)

There's the `posix=False` option to `shlex.split` -- I'm not sure what it does/doesn't enable though (the docs aren't thorough here and the code is a bit non-obvious):

>>> shlex.split(s, posix=False)
['export', "F=$'\\''"]
Date User Action Args
2019-10-26 05:02:59Anthony Sottilesetrecipients: + Anthony Sottile, timonegk
2019-10-26 05:02:59Anthony Sottilesetmessageid: <>
2019-10-26 05:02:59Anthony Sottilelinkissue38570 messages
2019-10-26 05:02:59Anthony Sottilecreate