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

Re: Two simple questions



    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