Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to clean up path most efficiently?
- X-seq: zsh-users 7593
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to clean up path most efficiently?
- Date: Wed, 23 Jun 2004 00:09:46 -0700 (PDT)
- In-reply-to: <BCFE04D9.35C2%lists@xxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: zsh-users@xxxxxxxxxx
- Sender: schaefer@xxxxxxxxxxxxxxxxxx
On Tue, 22 Jun 2004, Timothy Luoma wrote:
> > path=($^path(N))
>
> Does that go through the current $PATH and delete all the folders that
> aren't listed in there?
Yes.
> Is it supposed to be lowercase?
Yes, Sami Samhuri has the right of it: $path and $PATH are "tied"
variables, one an array and one a colon-delimited string, both of which
represent the same value. Assign to either one and zsh changes the other
to match.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author