From: Helmut Jarausch <jarausch@skynet.be>
To: zsh-users@zsh.org
Subject: breadth first globbing
Date: Tue, 31 Mar 2015 11:32:40 +0200 [thread overview]
Message-ID: <ya6jFSRaXpyIynyxQfMYTE@zsHaHwdu7sCmK6w9tgPVg> (raw)
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
next reply other threads:[~2015-03-31 9:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 9:32 Helmut Jarausch [this message]
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
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=ya6jFSRaXpyIynyxQfMYTE@zsHaHwdu7sCmK6w9tgPVg \
--to=jarausch@skynet.be \
--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).