From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28170 invoked from network); 23 Jun 2004 01:33:49 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 23 Jun 2004 01:33:49 -0000 Received: (qmail 26707 invoked from network); 23 Jun 2004 01:33:14 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 01:33:14 -0000 Received: (qmail 15799 invoked by alias); 23 Jun 2004 01:32:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7589 Received: (qmail 15787 invoked from network); 23 Jun 2004 01:32:49 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 23 Jun 2004 01:32:46 -0000 Received: (qmail 25671 invoked from network); 23 Jun 2004 01:32:46 -0000 Received: from mail.hummerdns.net (HELO secure3.hummerdns.net) (207.44.152.5) by a.mx.sunsite.dk with SMTP; 23 Jun 2004 01:32:44 -0000 Received: from diavolo.exile.net (S0106000d88e212e5.gv.shawcable.net [24.68.20.99]) (authenticated (0 bits)) by secure3.hummerdns.net (8.11.6/8.11.6) with ESMTP id i5N1YBI10916 for ; Tue, 22 Jun 2004 20:34:12 -0500 Received: by diavolo.exile.net (Postfix, from userid 1000) id 1F02240AD; Tue, 22 Jun 2004 19:23:07 -0700 (PDT) Date: Tue, 22 Jun 2004 19:23:07 -0700 From: Sami Samhuri To: zsh-users@sunsite.dk Subject: Re: How to clean up path most efficiently? Message-ID: <20040623022307.GD22858@no-eff-eks.com> Mail-Followup-To: zsh-users@sunsite.dk References: <200406171634.i5HGYAmE011684@news01.csr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yudcn1FV7Hsu/q59" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i 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=BAYES_44 autolearn=no version=2.63 X-Spam-Hits: -0.0 --yudcn1FV7Hsu/q59 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * It was Tue, Jun 22, 2004 at 03:46:33PM -0400 when Timothy Luoma said: > On 6/17/04 12:34 PM, "Peter Stephenson" wrote: [...] > > It should be as simple as: > >=20 > > path=3D($^path(N)) >=20 > Does that go through the current $PATH and delete all the folders that > aren't listed in there? >=20 > Is it supposed to be lowercase? zsh uses $PATH, and also $path. $path differs in that it is a zsh array. At least, this is my understanding of how things work. --=20 Sami Samhuri --yudcn1FV7Hsu/q59 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFA2OmLukGyBH1UC2MRArHmAJ9vG1unRv0lot5Ye5S39GYuTGV+AwCgn+3A UNMu1Fuy/0sAsSruMNPEzFc= =v0ah -----END PGP SIGNATURE----- --yudcn1FV7Hsu/q59--