shell script variables

Denis Vlasenko vda.linux at googlemail.com
Sun Oct 29 20:34:16 UTC 2006


On Sunday 29 October 2006 18:19, Démi Zsolt wrote:
> Hi!
> 
> In Busybox 1.2.1 the following shell script working fine :
> 
> #cat test.sh
> !/bin/sh
> 
> HTTPD_PID=$(pidof httpd)
> echo $HTTPD_PID
> 
> #test.sh
> 678
> #
> 
> In Busybox 1.2.2
> #test.sh
> 
> #
> (just a new line printed!)
> I have copied the 1.2.1 config into 1.2.2 folder and I have compiled the 
> busybox 1.2.2 after that.

Yet another wictim of static linking with glibc?

Grab http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2

It has the following:

#if ENABLE_STATIC && defined(__GLIBC__)
#warning Static linking against glibc produces buggy executables
#warning See sources.redhat.com/bugzilla/show_bug.cgi?id=3400
#warning Note that glibc is utterly unsuitable for static linking anyway.
#endif

--
vda



More information about the busybox mailing list