This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Fwd: getenv() in glibc


On Fri, 10 Sep 1999, Franz Sirl wrote:

> Hi,
> 
> I just verified Frank's report on Linux/PPC, does this happen on other 
> platforms too?
> 
> Franz.
> 
> [fsirl@kernel:~]$ cat test.c
> #include <stdio.h>
> #include <stdlib.h>
> 
> int main()
> {
>    printf("%s\n", getenv("X"));
>    printf("%s\n", getenv("XX"));
>    return 0;
> }
> [fsirl@kernel:~]$ gcc -W -Wall -O2 test.c
> [fsirl@kernel:~]$ X=123 XX=456 ./a.out
> (null)
> 456
> [fsirl@kernel:~]$

wiget wiget:> X=123 XX=456 ./a.out
123
456
wiget wiget:> uname -a
Linux wiget 2.2.12 #2 sob sie 28 02:12:34 CEST 1999 i586 pld
wiget wiget:> rpm -q glibc
glibc-2.1.2-8

Wiget
-- 
  __    __ _            _
 / / /\ \ (_) __ _  ___| |_  @__mail:  Artur Frysiak
 \ \/  \/ / |/ _` |/ _ \ __|            Rudlice 10
  \  /\  /| | (_| |  __/ |_           98-311 Ostrowek
   \/  \/ |_|\__, |\___|\__|
             |___/           email:   Wiget@t17.ds.pwr.wroc.pl
PGP key: http://www.t17.ds.pwr.wroc.pl/~wiget/pgp.key
Fingerprint16 = 70 DB E0 2D 12 AB C7 31  B6 58 B5 61 B3 98 B6 E6

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]