Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Pruning Recursive Glob
- X-seq: zsh-users 13753
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Pruning Recursive Glob
- Date: Mon, 26 Jan 2009 15:15:11 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7c6dHvQTl8v3o57SKZlkBVVhKYFRC3WyNBWkd0ateW4=; b=pBE7+My7PDDLS0LIHFjNEnSaanROTxSAlEtcnie3spAeHp261doDaY0iky2gceZm+X F6a7RaOL9r+X3eX15RWzytEYMR7rDWVc7SbQR+O/UBEq4zNY2sn3hNfAEI3UJr8Qkcdc ftVh7QpJyXH5tp8Frp96EvkVIguyVsORD60xQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=TUM4YqF1ZxMmmw3ovW3M1SLp7f0azOFrM+cLxLHzO5/OZiFGkLVTW3QjNzXQtqZx9V Rk355s7dxc2CgIDtkxEin0hyJBYB1hlrKPCyGKB/EoQ/mJiTVjFAU0DN54HDSZpCwQd2 wpB+6gPxZaz3ZE0rpO0f2d9wlGfvUmzPW9AaE=
- In-reply-to: <20090126141155.GA26716@namib>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090126141155.GA26716@namib>
2009/1/26 Chris Johnson <cjohnson@xxxxxxxxxxxx>:
> Hi. I'm having trouble finding a recursive glob pattern that can help
> me change permissions on all files except CVS directories. I'd like to
> have a checkout of a CVS repository in my web directory, but not make
> the CVS information readable when I make everything else accessible.
>
> For example, I'd like to issue something like
>
> $ cd WWW/checkout
> $ chmod a+rX **/*~CVS
>
> to make all non-CVS files readable and all non-CVS directories readable
> and executable. But that ~CVS doesn't do any pruning. Nor does ~*/CVS,
> ~**/CVS, etc.
>
> Is what I'm trying to do supported by some globbing pattern?
**/*~*/CVS should work, do you have setopt extendedglob in effect?
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author