process environment handling broken

Bennett Todd bet at rahul.net
Wed Apr 26 17:50:10 UTC 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20060426/01e384ca/attachment-0002.pgp 


More information about the uClibc mailing list