From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28222 invoked from network); 24 Nov 1997 10:27:48 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 24 Nov 1997 10:27:48 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id FAA20832; Mon, 24 Nov 1997 05:04:59 -0500 (EST) Resent-Date: Mon, 24 Nov 1997 05:04:35 -0500 (EST) Message-Id: <199711241004.FAA20784@math.gatech.edu> To: zsh-users@math.gatech.edu Subject: Re: path/PATH function In-reply-to: Your message of "Fri, 21 Nov 1997 14:23:56 EST." <19971121142356.16832@astaroth.nit.gwu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 24 Nov 1997 10:04:28 +0000 From: Bruce Stephens Resent-Message-ID: <"tvP4M.0.w45.o4LUq"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1150 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu sweth@astaroth.nit.gwu.edu said: > my next question, then, is if these do, in fact, work the way i > surmised (that is, they remove redundancies and map their > colon-delimited versions onto the capitalized equivalent variable). Yes, but there's no removing of redundancies. There's back-mapping too, if you set CDPATH then cdpath gets set. sweth@astaroth.nit.gwu.edu said: > also, what exactly is the format for defining them? is it just > paren-enclosed, space-delimited lists? Yes, standard array syntax. sweth@astaroth.nit.gwu.edu said: > the version of typeset on my system doesn't seem to support this > option (or at least, the man page doesn't mention it). typeset > doesn't return an error if i try to use the -U switch, however; could > someone summarize the syntax so i could see if it is, in fact, > implemented? Try: cdpath=(.. ..) echo $cdpath ;# Should give ".. .." typeset -U cdpath echo $cdpath ;# Should give ".." Works in my 3.1.2 beta, anyway. I don't know whether typeset -U is in 3.0.5.