zsh-users
 help / color / mirror / code / Atom feed
From: Han Pingtian <hanpt@linux.vnet.ibm.com>
To: zsh-user <zsh-users@zsh.org>
Subject: (-) doesn't make (e) working on the files which symbolic links point to ?
Date: Fri, 24 Oct 2014 10:14:07 +0800	[thread overview]
Message-ID: <20141024021406.GA3496@localhost.localdomain> (raw)

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 :)


             reply	other threads:[~2014-10-24  2:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24  2:14 Han Pingtian [this message]
2014-10-24  3:22 ` Bart Schaefer
2014-10-24  6:28   ` Han Pingtian
2014-10-24  7:05     ` Mikael Magnusson
2014-10-24  8:56       ` Han Pingtian
2014-10-24  7:19     ` Bart Schaefer

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=20141024021406.GA3496@localhost.localdomain \
    --to=hanpt@linux.vnet.ibm.com \
    --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).