Dave, do you want to say that your fish can expand character classes? Like [a-zA-Z]? Mine can not (:
On Tue, 08 May 2012 22:07:56 +0400, David Frascone <d...@frascone.com> wrote: > That looks good. > > I usually just do .[a-zA-Z]* > > :) > > On Fri, May 4, 2012 at 2:41 AM, Maxim Gonchar <gma...@gmail.com> wrote: > >> Hi fishers, >> >> I've noticed that it is very uncomfortable to use wild cards to work >> with >> 'hidden' files and folders, because when expanded it always produces '.' >> and '..' directories, which normally are almost never needed for >> expansion. >> >> Consider the following example: you need to copy all the files and >> directories (including hidden) from one directory to another. You can >> not >> write >> cp -r dir/* dir/.* destination/ >> or >> cp -r dir/{,.}* destination/ >> >> because it will be also expanded to the dir/.., which means that cp will >> copy also the contents of the outer directory. I've failed to find an >> example, where you really need these '.' and '..' in expansion. Does >> anyone knows them? >> >> So I propose to remove '.' and '..' from '.*' expansion. If someone need >> them, he can add them manually with with {} syntax. >> >> regards, >> Maxim >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions >> will include endpoint security, mobile security and the latest in >> malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Fish-users mailing list >> Fish-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fish-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users