summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-12-30 10:21:48 -0500
committerZack Weinberg <zackw@panix.com>2020-12-30 10:25:39 -0500
commitec2aa28b6427274b214c244d05b32bc4d7e865cd (patch)
tree6a4d8ebf5c0973e71517e8e3aae8203a382500b8
parent08bb0fe5b409a4cd86620f114f4366e62b76ef49 (diff)
downloadautoconf-ec2aa28b6427274b214c244d05b32bc4d7e865cd.tar.gz
doc: Document another portability problem of 'od'.
* doc/autoconf.texi (Limitations of Usual Tools): Document that decimal output is not portable.
-rw-r--r--doc/autoconf.texi23
1 files changed, 21 insertions, 2 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index d09aba70..db1e0f46 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -19782,14 +19782,33 @@ perfectly portable among Posix hosts.
@c ---------------
@prindex @command{od}
-In Mac OS X 10.3, @command{od} does not support the
+In MacOS X versions prior to 10.4.3, @command{od} does not support the
standard Posix options @option{-A}, @option{-j}, @option{-N}, or
@option{-t}, or the XSI option, @option{-s}. The only
supported Posix option is @option{-v}, and the only supported
XSI options are those in @option{-bcdox}. The BSD
@command{hexdump} program can be used instead.
-This problem no longer exists in Mac OS X 10.4.3.
+In some versions of some operating systems derived from Solaris 11,
+@command{od} prints decimal byte values padded with zeroes rather than
+with spaces:
+
+@smallexample
+$ @kbd{printf '#!' | od -A n -t d1 -N 2}
+ 035 033
+@end smallexample
+
+@noindent
+instead of
+
+@smallexample
+$ @kbd{printf '#!' | od -A n -t d1 -N 2}
+ 35 33
+@end smallexample
+
+We have observed this on both OpenIndiana and OmniOS;
+Illumos may also be affected.
+As a workaround, you can use octal output (option @code{-t o1}).
@item @command{rm}