Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Two simple questions
- X-seq: zsh-users 7994
- From: DervishD <zsh@xxxxxxxxxxxx>
- To: Tero Niemela <tero_niemela@xxxxxxxxx>
- Subject: Re: Two simple questions
- Date: Wed, 15 Sep 2004 10:36:56 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20040915051128.66457.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Tero Niemela <tero_niemela@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: DervishD
- References: <20040914190916.GA974@DervishD> <20040915051128.66457.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Hi Tero :)
* Tero Niemela <tero_niemela@xxxxxxxxx> 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/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author