From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15148 invoked by alias); 24 Oct 2014 06:42:37 -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: 19279 Received: (qmail 18485 invoked from network); 24 Oct 2014 06:42:34 -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 14:28:38 +0800 From: Han Pingtian To: zsh-users@zsh.org Subject: Re: (-) doesn't make (e) working on the files which symbolic links point to ? Message-ID: <20141024062838.GB3496@localhost.localdomain> Mail-Followup-To: zsh-users@zsh.org References: <20141024021406.GA3496@localhost.localdomain> <141023202253.ZM19726@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <141023202253.ZM19726@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14102406-0029-0000-0000-000000DEEA94 On Thu, Oct 23, 2014 at 08:22:53PM -0700, Bart Schaefer wrote: > On Oct 24, 10:14am, Han Pingtian wrote: > } > } Looks like the qualifer "(-)" doesn't make "(e)" works on files pointed > } by symblic > > The only thing that (-) controls is whether the file attributes are read > by lstat() or stat(). It does not cause a readlink(); note that even in > the absence of (e), the names returned by *(@-) are the names of the links > and not of the files linked-to. > Thanks. > You want (:A) like so: > > ls -l /dev/disk/by-id/*(:Ae'.[[ $REPLY = *sda* ]].') I'm sorry, it doesn't work. The outputs of "*(:Ae'.[[ $REPLY = *sda* ]].')" is the same as "*(:A)".