R. David Murray added the comment:
Case 2 (the actual behavior) is correct. Quotes *within* words are ignored,
only a leading quoted string will result in a separate word. (That's
recursive: try '"Do""This""Separate).
That said, we don't really care about non-posix mode, it's just there for
New submission from Arno-Can Uestuensoez:
I am currently writing an extended options scanner including
shlex-compatibility mode. So including numerous extended unittests for
compatibility verification.
I am not sure whether the following behaviour of shlex.split() is correct:
Quote from manua