From owner-freebsd-questions Sat Jun 26 7:35:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from support.euronet.nl (support.euronet.nl [194.134.32.134]) by hub.freebsd.org (Postfix) with ESMTP id BA97B14EC9 for ; Sat, 26 Jun 1999 07:35:46 -0700 (PDT) (envelope-from beng@support.euronet.nl) Received: (from beng@localhost) by support.euronet.nl (8.9.1/8.9.1) id QAA01316 for freebsd-questions@freebsd.org; Sat, 26 Jun 1999 16:35:45 +0200 (CEST) (envelope-from beng) Message-Id: <199906261435.QAA01316@support.euronet.nl> Subject: Re: char* getenv(const char*) (3) In-Reply-To: from Lukas Ruf at "Jun 26, 99 04:28:21 pm" To: freebsd-questions@freebsd.org Date: Sat, 26 Jun 1999 16:35:45 +0200 (CEST) From: Ben Gras X-Bad-Religion: Rules X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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