printf without any argument exits ash

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 10 11:52:11 UTC 2008


On Wednesday 10 December 2008 11:51, Alexander Griesser wrote:
> Another strange problem I encountered today and I'm not sure if it's my
> fault:
> 
> When running busybox on my desktop system (or on my thinclients, doesn't
> matter) I encountered a strange problem with the "printf" applet today
> (v1.13.1):
> 
> I can start the ash shell normally and can use "printf" to draw some
> text on the screen.
> 
> tuxx at vi-edv003:~/busybox/busybox-1.13.1$ ./busybox ash
> ~/busybox/busybox-1.13.1 $ printf "this works\n"
> this works
> 
> 
> But, when I run "printf" without any argument, it simply kills the shell
> as you can see here:
> 
> ~/busybox/busybox-1.13.1 $ printf
> BusyBox v1.13.1 (2008-12-09 10:34:51 CET) multi-call binary
> 
> No help available.
> 
> tuxx at vi-edv003:~/busybox/busybox-1.13.1$
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I'm dropped out of busybox ash, back into my bash shell

Try this:

http://busybox.net/downloads/fixes-1.13.1/busybox-1.13.1-printf.patch

--
vda



More information about the busybox mailing list