From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13642 invoked from network); 1 May 1998 18:16:54 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 1 May 1998 18:16:54 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id OAA13439; Fri, 1 May 1998 14:12:43 -0400 (EDT) Resent-Date: Fri, 1 May 1998 14:12:43 -0400 (EDT) Date: Fri, 1 May 1998 10:21:20 -0700 Message-Id: <199805011721.KAA21663@wank.pdi.com> MIME-Version: 1.0 From: Nik Gervae To: mason@primenet.com.au Cc: zsh-workers@math.gatech.edu Subject: Re: env variables Newsgroups: lists.zsh.workers In-Reply-To: References: <004e01bd747a$78f97b50$80ac2ac0@copenhagen.firstquadrant.com> X-Mailer: VM 6.34 under 20.3 "Vatican City" XEmacs Lucid Reply-To: Nik Gervae Content-Type: text/plain; charset=US-ASCII Resent-Message-ID: <"XqGUH.0.vH3.Q2XIr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/3911 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu > 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: #include int main(int argc, char *argv[]) { char *env; if (argc < 1) exit(EXIT_FAILURE); env = getenv(argv[1]); printf("%s\n", argv[1]); printf("%s\n", env); exit(EXIT_SUCCESS); } This is all in version 3.0.5. --Nik