[patch] no output when executing md5sum in back quotes

Denis Vlasenko vda.linux at googlemail.com
Thu May 17 12:54:42 PDT 2007


On Thursday 17 May 2007 10:30, Daniel Farrugia wrote:
> * Denis Vlasenko <vda.linux at googlemail.com> [2007-05-17 00:26:52 +0200]:
> > On Wednesday 16 May 2007 12:25, Daniel Farrugia wrote:
> > > The md5sum applet included with busybox 1.5.0 seems to have a problem
> > > when executed inside back quotes. Running the applet directly from the
> > > shell works fine however when back quotes are used there is no output:
> > > 
> > > % busybox md5sum busybox            [works]
> > > % echo `busybox md5sum busybox`     [no ouput]
> > > 
> > > It seems that the applet doesn't flush stdout before exiting. The
> > > trivial patch included below fixed this problem for me.
> > 
> > Are you using CONFIG_STATIC=y and glibc?
> 
> Hello Denis,
> 
> I was in fact statically linking against glibc using the tool chain that
> comes with Debian Sarge. I re-compiled with the uClibc tool chain and
> the problem went away. Sorry for the noise.

busybox has to emit big fat warning in this case. Did you see it
(maybe we have a bug and message doesn't appear anymore?)
--
vda


More information about the busybox mailing list