zsh-users
 help / color / mirror / code / Atom feed
From: Michal Politowski <mpol@charybda.icm.edu.pl>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: breadth first globbing
Date: Tue, 31 Mar 2015 12:53:06 +0200	[thread overview]
Message-ID: <20150331105306.GA18004@meep.pl> (raw)
In-Reply-To: <CAHYJk3RitGhSJF_k0UwZH5TGXGWiMFCxn--F2-JpxDL3M4Akkw@mail.gmail.com>

On Tue, 31 Mar 2015 12:04:37 +0200, Mikael Magnusson wrote:
> On Tue, Mar 31, 2015 at 11:44 AM, Helmut Jarausch
> <jarausch@igpm.rwth-aachen.de> wrote:
> > Hi,
> >
> > I have (unpacked) a directory tree where directories don't have the executable 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 for that.
> >
> > Many thanks for a hint,
> > Helmut
> 
> 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')

-- 
Michał Politowski
Talking has been known to lead to communication if practiced carelessly.


  parent reply	other threads:[~2015-03-31 11:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-31  9:44 Helmut Jarausch
2015-03-31 10:04 ` Mikael Magnusson
2015-03-31 10:42   ` Bart Schaefer
2015-03-31 12:10     ` Mikael Magnusson
2015-03-31 10:53   ` Michal Politowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-03-31  9:32 Helmut Jarausch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150331105306.GA18004@meep.pl \
    --to=mpol@charybda.icm.edu.pl \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).