R. David Murray added the comment:
>>> shlex.split('"Do""This""Separate"', posix=False)
['"Do"', '"This"', '"Separate"']
>>> shlex.split('Do"SeparateThis"', posix=False)
['Do"SeparateThis"']
Both of these are as documented. The first has three separate words, since
each word that starts with a leading " is split at the closing quote (thus
producing a new word that starts with a "). The last is one word, because the
first " is internal to the word that starts at 'Do'.
In any case, if you find something that disagrees with the docs, we'll just
change the docs, because posix=False exists only for backward compatibility so
whatever the code actually does is by definition correct at this point.
----------
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue28392>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com