From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17188 invoked by alias); 31 Mar 2015 09:45:03 -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: 20053 Received: (qmail 14236 invoked from network); 31 Mar 2015 09:45:02 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Belgacom-Dynamic: yes X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=2W4L6nnYN9rqwAuFxL5RLc5l3I+TT09mLtzpd/ATfDk= c=1 sm=2 a=NimUR-UY4PkA:10 a=kj9zAlcOel0A:10 a=sWAaS-hv7xBHVqdMyFQA:9 a=CjuIK1q_8ugA:10 a=ThYhIiwUPasA:10 a=ajIIDv6VtcoA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DcDgD9axpV/4VBsFtcgwaBFst0BIFATQEBAQEBAX1BAYQTHIEUKRg6iBgBpA2HSI5XknaQPoQXBa8SIoFFDIIfPIJ0AQEB Date: Tue, 31 Mar 2015 11:44:59 +0200 From: Helmut Jarausch Reply-To: jarausch@igpm.rwth-aachen.de Subject: breadth first globbing To: zsh-users@zsh.org X-Mailer: Balsa 2.5.1-151-g74007a7 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have (unpacked) a directory tree where directories don't have the executa= ble 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 t= hat. Many thanks for a hint, Helmut =