This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Andrey.Kislyuk, acue, cvrebert, eric.araujo, eric.smith, ezio.melotti, python-dev, r.david.murray, robodan, vinay.sajip
Date 2016-10-09.15:02:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476025375.14.0.158963280209.issue28392@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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.
History
Date User Action Args
2016-10-09 15:02:55r.david.murraysetrecipients: + r.david.murray, vinay.sajip, eric.smith, robodan, ezio.melotti, eric.araujo, cvrebert, python-dev, Andrey.Kislyuk, acue
2016-10-09 15:02:55r.david.murraysetmessageid: <1476025375.14.0.158963280209.issue28392@psf.upfronthosting.co.za>
2016-10-09 15:02:55r.david.murraylinkissue28392 messages
2016-10-09 15:02:55r.david.murraycreate