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 ncoghlan
Recipients alex, cvrebert, eric.araujo, ncoghlan, pitrou
Date 2011-10-29.01:40:14
SpamBayes Score 5.401202e-05
Marked as misclassified No
Message-id <1319852415.39.0.944796154343.issue13238@psf.upfronthosting.co.za>
In-reply-to
Content
The first version I wrote *did* automatically invoke shlex.quote on all interpolated values, but that breaks wildcard handling. You can see that in the examples I posted above. With the default whitespace escaping (which allows spaces in filenames), wildcard matching still works (thus the list of directories matching the "../py*" pattern), but with full quoting it breaks (thus the "nothing named '../py*'" result).

So I figured the simplest default was "you can have spaces in your filenames, but otherwise you can do what you want". Now that I have the 'unquoted' conversion specifier, I'm open to tweaking that scheme to allow the same chars that shlex.quote does *plus* specifically the wildcard matching chars (i.e. '*', '?').
History
Date User Action Args
2011-10-29 01:40:15ncoghlansetrecipients: + ncoghlan, pitrou, eric.araujo, alex, cvrebert
2011-10-29 01:40:15ncoghlansetmessageid: <1319852415.39.0.944796154343.issue13238@psf.upfronthosting.co.za>
2011-10-29 01:40:14ncoghlanlinkissue13238 messages
2011-10-29 01:40:14ncoghlancreate