process environment handling broken

Alessio Massaro alessio.massaro at oxinst.co.uk
Thu Apr 27 08:34:50 UTC 2006


And sorry for the stupid disclaimer at the bottom. I forgot to switch the
account :-)

> -----Original Message-----
> From: uclibc-bounces at uclibc.org 
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of 
> Alessio.MASSARO at oxinst.co.uk
> Sent: 27 April 2006 09:29
> To: bet at rahul.net
> Cc: uclibc at uclibc.org
> Subject: RE: process environment handling broken
> 
> I actually gave your syntax a try, but it still doesn't work
> 
> I'm afraid the problem is somewhat deeper.
> I discovered it trying to get udhcp to work.
> It parses the DHCPACK packet fine. All the info gets built 
> correctly into an envp vector in 
> busybox/networking/udhcp/script.c (fill_envp function) which 
> is correctly passed to execle syscall to run the i/f config 
> script. Yet the script has none of the environment variables defined.
> 
> I'll try debugging uclibc, but I wonder if I'm not doing 
> something stupid here. That's a very foundamental OS feature 
> and I would imagine lots of people have seen the problem 
> before me and suffered major excruciating pain because of it. 
> I know I am :-(
> 
> 
> > -----Original Message-----
> > From: Bennett Todd [mailto:bet at rahul.net]
> > Sent: 26 April 2006 18:50
> > To: Alessio Massaro
> > Cc: uclibc at uclibc.org
> > Subject: Re: process environment handling broken
> > 
> > 2006-04-26T17:13:53 Alessio Massaro:
> > > I have the following script:
> > > 
> > > ---- begin test.sh
> > > #!/bin/sh
> > > eho $test
> > > ---- end test.sh
> > 
> > What's eho?
> > 
> > > If I issue the following commands
> > > 
> > > # export test=OK
> > > # ./test.sh
> > > 
> > > test.sh should print "OK" right?
> > 
> > Depends on the shell. export var=value is a shorthand introduced by 
> > some newer shells; if you want portable to all /bin/sh 
> varients, write 
> > instead
> > 
> > 	test=OK; export test
> > 
> > -Bennett
> > 
> 
>  ###  OXFORD INSTRUMENTS   http://www.oxford-instruments.com/  ### 
> 
> Unless stated above to be non-confidential, this E-mail and 
> any attachments are private and confidential and are for the 
> addressee only and may not be used, copied or disclosed save 
> to the addressee.
> If you have received this E-mail in error please notify us 
> upon receipt and delete it from your records. Internet 
> communications are not secure and Oxford Instruments is not 
> responsible for their abuse by third parties nor for any 
> alteration or corruption in transmission. 
> 
> _______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://busybox.net/cgi-bin/mailman/listinfo/uclibc
> 
> +++ Virus-scanned by Messagelabs for Oxford Instruments +++
> 




More information about the uClibc mailing list