printf without any argument exits ash
Michael Abbott
michael at araneidae.co.uk
Wed Dec 10 11:09:33 UTC 2008
On Wed, 10 Dec 2008, 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):
>
> But, when I run "printf" without any argument, it simply kills the shell
Wow! Same here on busybox v1.12.2:
$ ssh root at 172.23.252.9
# printf
BusyBox v1.12.2 (2008-11-11 09:49:33 GMT) multi-call binary
No help available.
Connection to 172.23.252.9 closed.
$
Similarly, if I run a fresh shell it kills the sub-shell.
Interestingly, this is only if I run it as a shell (ash) built in:
# /usr/bin/printf
BusyBox v1.12.2 (2008-11-11 09:49:33 GMT) multi-call binary
Usage: printf FORMAT [ARGUMENT...]
Format and print ARGUMENT(s) according to FORMAT,
where FORMAT controls the output exactly as in C printf
#
Looks like the behaviour I'd expect there.
More information about the busybox
mailing list