i cant explain this one ... $ cat test.sh printf '%s\n' "$@" $ ./busybox hush ./test.sh n$ looks like when printf %s gets "" it incorrectly consumes an extra byte ? bash works fine: $ sh ./test.sh $
It just converts "\n" to "n". strace: execve("/root/bin/printf", ["printf", "%sn"], [/* 30 vars */])... Looking into it...
i say "weird" because it works fine with arguments: $ ./busybox hush ./test.sh 1 1 $
I updated hush hot fix, please try it: http://busybox.net/downloads/fixes-1.13.3/busybox-1.13.3-hush.patch
yep, thanks