Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: env variables
- X-seq: zsh-workers 3912
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Re: env variables
- Date: 1 May 1998 19:47:17 GMT
- Organization: PrimeNet Computer Consultants
- References: <slrn6kin04.o5h.mason@xxxxxxxxxxxxxxxxxxxxx> <199805011721.KAA21663@xxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
Nik Gervae <Nik@xxxxxxx> typed:
:> More information please.
:Here's some from me.
:> In zsh, does
:> % export | egrep "(CVSROOT|MANPATH|CLASSPATH)"
:> list all three?
:My problem is with cdpath (lowercase). I have modified my rc files to
:do this:
: export cdpath=(. /usr/pic5 /usr/tmp)
: export CDPATH=${(j/:/)cdpath}
:...so that both case-versions of the variable are defined. I noted that
:when I set only cdpath, CDPATH wasn't automatically getting defined
:as the documentation says it should. Hmm.
:Anyway, cdpath still doesn't show up in my environment. This small
:program gets NULL for "cdpath" but retrieves "CDPATH" just fine:
:This is all in version 3.0.5.
Arrays aren't exported, because there's no standard or de facto method of
exporting arrays, so nothing would understands them. Only strings are
exported. From your example, CDPATH is a string, cdpath is an array.
--
Geoff Wing <gcw@xxxxxxxxx> Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/ Ego URL: http://pobox.com/~gcw/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author