From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14716 invoked by alias); 24 Oct 2014 09:00:05 -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: 19282 Received: (qmail 16826 invoked from network); 24 Oct 2014 09:00:03 -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 16:56:06 +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: <20141024085606.GC3496@localhost.localdomain> Mail-Followup-To: zsh-users@zsh.org References: <20141024021406.GA3496@localhost.localdomain> <141023202253.ZM19726@torch.brasslantern.com> <20141024062838.GB3496@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14102408-0029-0000-0000-000000DF3CA2 On Fri, Oct 24, 2014 at 09:05:23AM +0200, Mikael Magnusson wrote: > It would appear that :A causes the e to not execute at all, but in > either case the end result would not be the desired one. The following > works, if your zsh is new enough to allow globbing in this context. > ls -l /dev/disk/by-id/*(e.'[[ $REPLY(#q:A) = *sda* ]]'.) > Thanks. And this one also works: ls -l /dev/disk/by-id/*(e.'[[ ${REPLY:A} = *sda* ]]'.)