develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu

From:
Ilya Zakharevich
Date:
November 19, 1999 01:00
Subject:
Re: [ID 19991116.002] perl5.005_02: my_setenv() and Term::ReadLine::Gnu
Message ID:
199911190900.EAA18584@monk.mps.ohio-state.edu
Yitzchak Scott-Thoennes writes:
> 
> In article <19991118210401.A16532@monk.mps.ohio-state.edu>,
> Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
> >On Fri, Nov 19, 1999 at 01:37:35AM +0100, Joerg Schumacher wrote:
> >
> >I do not believe this.  At least the documentation I see states that
> >putenv() will malloc() environ if it needs to modify it.  Thus with
> >usemymalloc=n the test is OK as is.
> 
> Single UNIX V2 seems to say otherwise.  In particular it states that
> if you call putenv(string) and then later change string, the
> environment will be changed.

We are not discussing environ[i] here, we are discussing environ
itself.  You know, one of type char**.  The container for environment
variables. ;-)

Ilya




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About