On Thu, Jan 21, 2016 at 10:27 AM, Ron Yorston wrote:
> >and the same applies to echo
>
> Busybox echo follows GNU conventions for escape handling rather than
> POSIX.
Is that a good thing ?
___
busybox mailing list
busybox@busybox.net
printf wasn't correctly handling \c in an argument to the %b format
specifier.
printf %bXX OK\\c
returned 'OK\cXX' rather than the expected 'OK'.
Signed-off-by: Ron Yorston
---
coreutils/printf.c | 12 +---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git
Trek wrote:
> $ busybox sh -c 's=OK\\n; echo "${s%%\\n*}"'
> OK\
This is fixed in 1.24 and git master.
> $ busybox sh -c 'printf %b OK\\c'
> OK\c
This is a problem with printf. Patch to follow.
>and the same applies to echo
Busybox echo follows GNU conventions for escape handling rather