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

Re: Excluding files in CVS directories in filename generation



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