From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18132 invoked from network); 15 Apr 2002 18:17:46 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Apr 2002 18:17:46 -0000 Received: (qmail 24210 invoked by alias); 15 Apr 2002 18:17:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4831 Received: (qmail 24197 invoked from network); 15 Apr 2002 18:17:22 -0000 To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: listing all executables by prefix? In-reply-to: ""Bart Schaefer""'s message of "Mon, 15 Apr 2002 17:56:32 -0000." <1020415175632.ZM9319@candle.brasslantern.com> Date: Mon, 15 Apr 2002 19:16:54 +0100 Message-ID: <5592.1018894614@csr.com> From: Peter Stephenson "Bart Schaefer" wrote: > > ls -l ${(@)$(hash -m prefix\*)#*=} I think you have to be a bit careful that the hash database is set up; it isn't immediately after zsh -f or a rehash. I don't think you lose much by using ls -l "${(@f)$(whence -pm prefix\*)}" instead. (Of course you really need to check the expansion isn't going to be empty first.) -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************