Message146589
| 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:15 | ncoghlan | set | recipients:
+ ncoghlan, pitrou, eric.araujo, alex, cvrebert |
| 2011年10月29日 01:40:15 | ncoghlan | set | messageid: <1319852415.39.0.944796154343.issue13238@psf.upfronthosting.co.za> |
| 2011年10月29日 01:40:14 | ncoghlan | link | issue13238 messages |
| 2011年10月29日 01:40:14 | ncoghlan | create |
|