From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18915 invoked from network); 4 Mar 2000 12:32:46 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 4 Mar 2000 12:32:46 -0000 Received: (qmail 6466 invoked by alias); 4 Mar 2000 12:32:34 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2943 Received: (qmail 6459 invoked from network); 4 Mar 2000 12:32:33 -0000 From: Bruce Stephens To: zsh-users@sunsite.auc.dk Subject: Re: zsh tips for "UNIX Power Tools" References: <28174.952013581@jpeek.com> <20000303123932.A11036@picard.franken.de> <87k8jjwt6h.fsf@cenderis.demon.co.uk> <1000304054014.ZM21187@candle.brasslantern.com> Date: 04 Mar 2000 12:31:28 +0000 In-Reply-To: "Bart Schaefer"'s message of "Sat, 4 Mar 2000 05:40:13 +0000" Message-ID: <87zose7w7z.fsf@cenderis.demon.co.uk> User-Agent: Gnus/5.0804 (Gnus v5.8.4) XEmacs/21.2 (Iris) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: bruce@cenderis.demon.co.uk "Bart Schaefer" writes: [...] > On Mar 3, 11:05pm, Bruce Stephens wrote: > } Subject: Re: zsh tips for "UNIX Power Tools" > } > } > chmod 755 **/*(/) > } > chmod 644 **/*(.) > } > } What's wrong with > } > } chmod -R go+rX . > > It changes the group and other execute permissions of plain files if the > user execute permission was already set. That's obviously not what 644 > accomplishes on plain files in Thomas's example. Sure, the two aren't identical. I suspect the latter is more often what people want---it's usually what I want, anyway. > Besides, not everyone has GNU chmod. I think the behaviour is reasonably common. Solaris 2.5.1 chmod also works (although I don't see the +X behaviour in the manpage).