From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6135 invoked by alias); 31 Mar 2015 11:00:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20056 Received: (qmail 16673 invoked from network); 31 Mar 2015 11:00:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 X-Virus-Scanned: amavisd-new at amavis-3.icm.edu.pl Date: Tue, 31 Mar 2015 12:53:06 +0200 From: Michal Politowski To: Zsh Users Subject: Re: breadth first globbing Message-ID: <20150331105306.GA18004@meep.pl> Mail-Followup-To: Zsh Users References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) On Tue, 31 Mar 2015 12:04:37 +0200, Mikael Magnusson wrote: > On Tue, Mar 31, 2015 at 11:44 AM, Helmut Jarausch > wrote: > > Hi, > > > > I have (unpacked) a directory tree where directories don't have the exe= cutable bit. > > So, I want to iterate over all directories and set the executable bit. > > > > Standard globbing like **/*(/) doesn't work because zsh tries to cd to= the directories > > before I can chmod +x these. > > > > Is there a solution with zsh or is it easier to write a Python script f= or that. > > > > Many thanks for a hint, > > Helmut >=20 > I would probably just chmod -R +x followed by chmod -x **/*(.), that's > assuming you don't have a mix of +x and -x files already though. Even simpler should be chmod -R +X (with a capital 'X') --=20 Micha=B3 Politowski Talking has been known to lead to communication if practiced carelessly.