Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 1999 16:35:45 +0200 (CEST)
From:      Ben Gras <ben@scum.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: char* getenv(const char*) (3)
Message-ID:  <199906261435.QAA01316@support.euronet.nl>
In-Reply-To: <Pine.GSO.4.10.9906261622150.562-100000@tardis-a2.ee.ethz.ch> from Lukas Ruf at "Jun 26, 99 04:28:21 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Folks,

-snip-
> > Why getenv does not work with PPID & PIPESTATUS ?
> > How shell obtain these info ?
> I suppose, that these environment variables are set upon request, i.e.
> they do not really exist but are set by the bash when their state is
> requested.
> 
> You know for sure about the existence of the getppid() function ? Within
> a process table as displayed by ps, the PPID can be obtained. I think,
> but I am not sure, that the same applies to the PIPESTATUS.

I think the difference will be the variables are exported or not..
export is generally a shell internal command that decides whether
to give the particular variable to children or not.

	=Ben




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906261435.QAA01316>