From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3964 invoked from network); 15 Sep 2004 08:36:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Sep 2004 08:36:40 -0000 Received: (qmail 85601 invoked from network); 15 Sep 2004 08:36:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Sep 2004 08:36:34 -0000 Received: (qmail 18970 invoked by alias); 15 Sep 2004 08:35:51 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7994 Received: (qmail 18956 invoked from network); 15 Sep 2004 08:35:51 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 15 Sep 2004 08:35:51 -0000 Received: (qmail 84278 invoked from network); 15 Sep 2004 08:34:53 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 15 Sep 2004 08:34:51 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212] helo=dervishd.net) by ns9.hostinglmi.net with esmtpa (Exim 4.42) id 1C7VFb-00005a-Kj; Wed, 15 Sep 2004 10:34:52 +0200 Date: Wed, 15 Sep 2004 10:36:56 +0200 From: DervishD To: Tero Niemela Cc: zsh-users@sunsite.dk Subject: Re: Two simple questions Message-ID: <20040915083655.GA1180@DervishD> Mail-Followup-To: Tero Niemela , zsh-users@sunsite.dk References: <20040914190916.GA974@DervishD> <20040915051128.66457.qmail@web61305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20040915051128.66457.qmail@web61305.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-PopBeforeSMTPSenders: raul@dervishd.net X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Hi Tero :) * Tero Niemela dixit: > > > # Clean up paths > > > path=($^path(N)) > > > manpath=($^manpath(N)) > > I don't get that two. The 'N' sets nullglob for > > that expansion, > > right but, why the '^'? AFAIK that only turns on > > 'RC_EXPAND_PARAM' > > for that expansion :? I'm curious :) > Those removes non-existing dirs from paths. It was > suggested on this list just a couple of months ago. Very clever! :) The '^' makes the '(N)' glob qualifier to be added to each element of the array :)) Thanks a lot for the explanation, is a very clever way of removing non-existent dirs from a list (well, an array in this case). Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.pleyades.net & http://raul.pleyades.net/