zsh-workers
 help / color / mirror / code / Atom feed
From: Nik Gervae <Nik@pdi.com>
To: mason@primenet.com.au
Cc: zsh-workers@math.gatech.edu
Subject: Re: env variables
Date: Fri, 1 May 1998 10:21:20 -0700	[thread overview]
Message-ID: <199805011721.KAA21663@wank.pdi.com> (raw)
In-Reply-To: <slrn6kin04.o5h.mason@coral.primenet.com.au>

> 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 <stdlib.h>

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


  reply	other threads:[~1998-05-01 18:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-30 20:56 Timothy Doyle
1998-04-30 23:01 ` Nik Gervae
1998-05-01  5:22 ` Geoff Wing
1998-05-01 17:21   ` Nik Gervae [this message]
1998-05-01 19:47     ` Geoff Wing
1998-05-01 20:44       ` Nik Gervae
1998-05-04  3:39         ` Geoff Wing
1998-05-04 10:41           ` Bart Schaefer
1998-05-04 17:01           ` Nik Gervae
     [not found]       ` <74885733@toto.iv>
1998-05-05  0:52         ` Nik Gervae

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805011721.KAA21663@wank.pdi.com \
    --to=nik@pdi.com \
    --cc=mason@primenet.com.au \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).