Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: on globbing dot files



"Ronald Fischer" wrote:
> I would like to expand * to include files starting with a dot, but 
> excluding . and ..
> 
> Doing a
> 
>   setopt glob_dots 
> 
> locally does not solve this problem, since this applies to *everything*.
> Is there a suitable option available? Alternatively, can I achieve an
> expansion
> to all directory entries except . and .. by some other glob expression?

With EXTENDED_GLOB, ^(.|..)(D/) should do what you want.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author