Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Excluding files in CVS directories in filename generation
- X-seq: zsh-users 6850
- From: Hannu Koivisto <azure@xxxxxx>
- To: "Zsh Users' List" <zsh-users@xxxxxxxxxx>
- Subject: Re: Excluding files in CVS directories in filename generation
- Date: Mon, 08 Dec 2003 19:36:30 +0200
- In-reply-to: <10346.1070904549@xxxxxxx> (Peter Stephenson's message of "Mon, 08 Dec 2003 17:29:09 +0000")
- Mail-copies-to: nobody
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <10346.1070904549@xxxxxxx>
- Sender: Hannu Koivisto <Hannu.Koivisto@xxxxxxxxxxx>
Peter Stephenson <pws@xxxxxxx> writes:
> Yes, indeed. Luckily, you can do:
>
> (^CVS/)#*(.)
>
> This is the more general form of ** --- the pattern in the parentheses
> is used (here anything but the string CVS) instead of a `*' to match
> directory names. More precisely,
> **/
> (*/)#
> are equivalent. That's why you don't need another / after the
> parentheses.
Excellent, thanks! I was aware of the general form but couldn't
think of actually using it to solve this problem :)
I would be interested to know why **/*~**/CVS/*(.) didn't work,
though.
--
Hannu
Messages sorted by:
Reverse Date,
Date,
Thread,
Author