From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2668 invoked by alias); 26 Nov 2014 17:33:13 -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: 19446 Received: (qmail 20317 invoked from network); 26 Nov 2014 17:33:01 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=sNVSGA898uumQyYIogTKX+gbTHjm6wecZcE/VG0K1DI=; b=FHGkYymIjoMCSJQpx5/nx0F/MUQARIsOxPG7e46blsyQ9ckKZ3s5Oeu5RBMSGShfsD ym5kxnHs+CKAajIQHX00gLhEq1VlebK//iyva6ALnXgcfPPXrFN2xNudbIf3XlNO9Ohh PTQu2OdCUMp9jG2FkHDuQ8I2lOG9wcWmV17M2tZMmpTMbZtGzh5++gKmE9r8oIkNAuJ8 8saXzD2RqpQ1IReaYMtF8mzsl6RbsuTeW2THUh/UT4bqdGMi/bXrROx7GBBQ2onc0KMu I5Q3APS6kkWo3TJjMLhGPoK/okJ7oLItI7/0jz8Vcqqhvp/tDNC6m0VDdtNqsn4m67DX +HiQ== X-Received: by 10.112.159.129 with SMTP id xc1mr35405070lbb.24.1417023178265; Wed, 26 Nov 2014 09:32:58 -0800 (PST) MIME-Version: 1.0 From: =?UTF-8?B?SsO2cmcgWmllZmxl?= Date: Wed, 26 Nov 2014 18:32:37 +0100 Message-ID: Subject: Glob specifiers for intermediate path components To: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Suppose I have the following directory structure: $ mkdir a $ touch a/1 $ ln -s a b $ ls -ld a b a/1 drwxr-xr-x 3 jozi staff 102 Nov 26 18:27 a -rw-r--r-- 1 jozi staff 0 Nov 26 18:27 a/1 lrwxr-xr-x 1 jozi staff 1 Nov 26 18:27 b -> a Globbing for files within directories, I get the file within the directory pointed by symlink b too: $ print -l */*(.) a/1 b/1 How can I restrict the globbing for the first directory level to directories only, excluding symlinks to directories? The obvious doesn't work: $ print -l *(/)/*(.) zsh: bad pattern: *(/)/*(.) More generally, how can I specify glob qualifiers for intermediate path components? In spirit: $ print -l a(...)/b(...)/c(...)/d(...)/e(...)/f(...) where (...) denotes glob qualifiers for the respective path components, or even: $ print -l {{a(...)/b(...)}/c(...)} Thanks, Joerg