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 roger.serwy
Recipients ezio.melotti, jwfang, roger.serwy
Date 2012-10-15.02:57:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350269864.42.0.526658185841.issue16186@psf.upfronthosting.co.za>
In-reply-to
Content
Upon further reading of the non-POSIX mode of shlex, this behavior is not a bug. See http://docs.python.org/py3k/library/shlex.html?highlight=shlex#parsing-rules

The "'h' w" test case parses correctly according to:
* Closing quotes separate words ("Do"Separate is parsed as "Do" and Separate);

The " 'h' w" test case parses correctly, since the quote is now within a word. The literal whitespace at the beginning is not recognized as whitespace, as it is not a "|". This follows the rule:
* Quote characters are not recognized within words (Do"Not"Separate is parsed as the single word Do"Not"Separate);


I'm closing this issue as invalid. Feel free to reopen if there is an error in my analysis.
History
Date User Action Args
2012-10-15 02:57:44roger.serwysetrecipients: + roger.serwy, ezio.melotti, jwfang
2012-10-15 02:57:44roger.serwysetmessageid: <1350269864.42.0.526658185841.issue16186@psf.upfronthosting.co.za>
2012-10-15 02:57:44roger.serwylinkissue16186 messages
2012-10-15 02:57:43roger.serwycreate