Nick Coghlan <ncogh...@gmail.com> added the comment:

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. 
'*', '?').

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13238>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to