]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Fix printf POSIX compatibility bug reported by Ben Harris in
authorJim Meyering <jim@meyering.net>
Mon, 21 Apr 2003 17:59:21 +0000 (17:59 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 21 Apr 2003 17:59:21 +0000 (17:59 +0000)
commit4bcefa624842964dccc75d005806d37c55c3198c
treef9ee7d45bbd31771ccbd081fd94367a12ebd54e1
parentd8b7cd198313dea308b9be6ab1d4be1e496ee1db
Fix printf POSIX compatibility bug reported by Ben Harris in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>.

* doc/coreutils.texi (printf invocation): It's \NNN in the format,
\0NNN in the %b operand.
* src/printf.c (usage): Likewise.
(print_esc): New arg OCTAL0 to specify whether \0NNN or \NNN
is desired.  All uses changed.  Behave like Bash printf if %b
operand uses \NNN where the initial N is not 0.
src/printf.c