From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16621 invoked from network); 19 Nov 1997 16:47:57 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 19 Nov 1997 16:47:57 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id LAA24659; Wed, 19 Nov 1997 11:21:22 -0500 (EST) Resent-Date: Wed, 19 Nov 1997 11:20:52 -0500 (EST) Message-Id: <199711191620.LAA24575@math.gatech.edu> X-Mailer: exmh version 2.0zeta 7/24/97 To: zsh-users@math.gatech.edu Subject: Re: path/PATH function In-reply-to: Your message of "Wed, 19 Nov 1997 10:37:56 EST." <19971119103756.34168@astaroth.nit.gwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 19 Nov 1997 16:20:40 +0000 From: Bruce Stephens Resent-Message-ID: <"yHIgp1.0.B06.a7nSq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1145 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu [I'm reading from zsh-3.1.2, but I think this is the same in 3.0.5] sweth@astaroth.nit.gwu.edu said: > cdpath=(. .. ~) > i hadn't declared $CDPATH anywhere in my .z* files, but echoing > $CDPATH after login returned > .:..:/home/sweth/sweth sweth@astaroth.nit.gwu.edu said: > i'm assuming that this is some sort of zsh path-addition option, along > the lines of what i had created; i couldn't find any reference to it > in the FAQ, however, other than a note in the wish-list for users to > "be able to create their own foopath/FOOPATH array/path > combinations." does anyone know anything more about this feature? Look at the zshparam manpage. cdpath and CDPATH are linked in the same way as path and PATH. typeset -U may also be relevant: it tells zsh to keep only the first element of identical copies, and comments that this also works with special variables like PATH and CDPATH. Note that there's a typo in the description: should be "For arrays keep only the first element of each duplication.", not "...duplications". I think, anyway, perhaps there's a better way to phrase it.