two small bugs in the shell
Ron Yorston
rmy at pobox.com
Thu Jan 21 10:27:29 UTC 2016
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 than
POSIX. With busybox 1.22.1-4.fc23 on Fedora 23:
$ busybox sh -c 'echo -e OK\\c'
OK$
Ron
More information about the busybox
mailing list