Message355403
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:59 | Anthony Sottile | set | recipients:
+ Anthony Sottile, timonegk |
2019-10-26 05:02:59 | Anthony Sottile | set | messageid: <1572066179.47.0.249930921545.issue38570@roundup.psfhosted.org> |
2019-10-26 05:02:59 | Anthony Sottile | link | issue38570 messages |
2019-10-26 05:02:59 | Anthony Sottile | create | |
|