Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: on globbing dot files
- X-seq: zsh-users 12833
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: on globbing dot files
- Date: Wed, 07 May 2008 14:51:35 +0100
- In-reply-to: <1210167708.15840.1251884005@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1210167708.15840.1251884005@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
"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