From: Mikael Magnusson <mikachu@gmail.com>
To: jarausch@igpm.rwth-aachen.de
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: breadth first globbing
Date: Tue, 31 Mar 2015 12:04:37 +0200 [thread overview]
Message-ID: <CAHYJk3RitGhSJF_k0UwZH5TGXGWiMFCxn--F2-JpxDL3M4Akkw@mail.gmail.com> (raw)
In-Reply-To: <tYlYiviWgd+7s75YNyNGDs@44xonsNjwD3MgaJWGxYjI>
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.
--
Mikael Magnusson
next prev parent reply other threads:[~2015-03-31 10:04 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 [this message]
2015-03-31 10:42 ` Bart Schaefer
2015-03-31 12:10 ` Mikael Magnusson
2015-03-31 10:53 ` Michal Politowski
-- 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=CAHYJk3RitGhSJF_k0UwZH5TGXGWiMFCxn--F2-JpxDL3M4Akkw@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=jarausch@igpm.rwth-aachen.de \
--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).