Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to clean up path most efficiently?



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