Shell expansion of * and hidden files
Robert P. J. Day
rpjday at mindspring.com
Fri Jul 23 11:49:05 UTC 2004
On Fri, 23 Jul 2004, Andre Speelmans wrote:
> On Fri, Jul 23, 2004 at 05:18:56AM -0400, Robert P. J. Day wrote:
>
>> actually, it doesn't, since it wouldn't match the perfectly valid
>> ".a". it's a popular puzzle to come up with a glob that matches all
>> hidden thingies, without matching "." or "..". and the solution is
>> ...
>>
>> $ echo .[!.]*
>
> But this would miss the file ..test or any other which starts with two or more
> dots.
>
> And I have to admit I don't know which glob would match all :(
hmmm ... you're right. must think harder on this one.
rday
More information about the fedora-list
mailing list