Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: on globbing dot files
- X-seq: zsh-users 12834
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: on globbing dot files
- Date: Wed, 7 May 2008 15:58:45 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <200805071351.m47DpZNR027657@xxxxxxxxxxxxxx>
- Mail-followup-to: Peter Stephenson <pws@xxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1210167708.15840.1251884005@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <200805071351.m47DpZNR027657@xxxxxxxxxxxxxx>
On Wed, May 07, 2008 at 02:51:35PM +0100, Peter Stephenson wrote:
> "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.
[...]
And with and without EXTENDED_GLOB, *(D/) should do it as well
;-) as globbing in zsh never expands to "." and "..".
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author