Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
(-) doesn't make (e) working on the files which symbolic links point to ?
- X-seq: zsh-users 19277
- From: Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx>
- To: zsh-user <zsh-users@xxxxxxx>
- Subject: (-) doesn't make (e) working on the files which symbolic links point to ?
- Date: Fri, 24 Oct 2014 10:14:07 +0800
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-user <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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 :)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author