From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18132 invoked by alias); 24 Oct 2014 02:24:24 -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: 19277 Received: (qmail 22373 invoked from network); 24 Oct 2014 02:24:22 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Fri, 24 Oct 2014 10:14:07 +0800 From: Han Pingtian To: zsh-user Subject: (-) doesn't make (e) working on the files which symbolic links point to ? Message-ID: <20141024021406.GA3496@localhost.localdomain> Mail-Followup-To: zsh-user MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14102402-0033-0000-0000-000000D24C50 Hi, Looks like the qualifer "(-)" doesn't make "(e)" works on files pointed by symblic, on linux: % ls -l /dev/disk/by-id/*(-e'.[[ $REPLY = *sda* ]].') zsh: no match % ls -l /dev/disk/by-id/*(-e'.[[ $(readlink $REPLY) = *sda* ]].') lrwxrwxrwx. 1 root root 9 Oct 23 18:34 /dev/disk/by-id/ata-HITACHI_HTS727550A9E364_J3320082GD0NWB -> ../../sda lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/ata-HITACHI_HTS727550A9E364_J3320082GD0NWB-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/ata-HITACHI_HTS727550A9E364_J3320082GD0NWB-part2 -> ../../sda2 lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/ata-HITACHI_HTS727550A9E364_J3320082GD0NWB-part3 -> ../../sda3 lrwxrwxrwx. 1 root root 9 Oct 23 18:34 /dev/disk/by-id/wwn-0x5000cca68ac576fb -> ../../sda lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/wwn-0x5000cca68ac576fb-part1 -> ../../sda1 lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/wwn-0x5000cca68ac576fb-part2 -> ../../sda2 lrwxrwxrwx. 1 root root 10 Oct 23 18:34 /dev/disk/by-id/wwn-0x5000cca68ac576fb-part3 -> ../../sda3 % it would be better if "$REPLY" contains name of the file pointed by symblic there :)