Re: Environment handling broken in /bin/sh with changes to t,set,put}env()

From: Andrey Chernov <ache_at_nagual.pp.ru>
Date: Sat, 14 Jul 2007 02:46:08 +0400
On Fri, Jul 13, 2007 at 05:27:58PM -0500, Sean C. Farley wrote:
> Does that mean that environ is untouched or that the environment is
> unchanged?  They seem to use both words (environ and environment) in the
> documentation making me think they are not necessarily the same thing.
> Currently, non-getenv() calls rebuilds the environ array if having never
> been changed before, but the "environment" is "unchanged" if the
> variable does not exist.  Should that not meet that requirement?

IMHO by the environment they means environ contents, not pointers, because 
they say:

"The setenv() function shall update the list of pointers to which environ 
points."

-- 
http://ache.pp.ru/
Received on Fri Jul 13 2007 - 20:46:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC