summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-23 08:39:00 +0000
committerJim Meyering <jim@meyering.net>2003-04-23 08:39:00 +0000
commita06b5aaf21bcaed20f65ffb3f0bbd7ac6e968c7c (patch)
treeab1ff8edfbc6db19a3e5130e0267a990ea20ff3e /doc/coreutils.texi
parentd446eecbf518e7843475f3d23100154432c48c3f (diff)
downloadcoreutils-a06b5aaf21bcaed20f65ffb3f0bbd7ac6e968c7c.tar.xz
Fix printf POSIX compatibility bug reported by Ben Harris in
<http://mail.gnu.org/archive/html/bug-coreutils/2003-04/msg00070.html>. (printf invocation): It's \NNN in the format, \0NNN in the %b operand.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 2a992dc2a..dff75cabc 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -8475,13 +8475,14 @@ all of the given @var{argument}s.
@command{printf} has one additional directive, @samp{%b}, which prints its
argument string with @samp{\} escapes interpreted in the same way as in
-the @var{format} string.
+the @var{format} string, except that octal escapes are of the form
+@samp{\0@var{ooo}} where @var{ooo} is 0 to 3 octal digits.
@kindex \@var{ooo}
@kindex \x@var{hh}
@command{printf} interprets @samp{\@var{ooo}} in @var{format} as an octal number
-(if @var{ooo} is 0 to 3 octal digits) specifying a character to print,
+(if @var{ooo} is 1 to 3 octal digits) specifying a character to print,
and @samp{\x@var{hh}} as a hexadecimal number (if @var{hh} is 1 to 2 hex
digits) specifying a character to print.