]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Document Solaris tr range and NUL limitations.
authorBruno Haible <bruno@clisp.org>
Tue, 18 Aug 2009 20:17:51 +0000 (22:17 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Tue, 18 Aug 2009 20:17:51 +0000 (22:17 +0200)
* doc/autoconf.texi (Limitations of Usual Tools): Mention that
Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
escape.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
doc/autoconf.texi

index 0c317234c0c3e5cc34c606c20b669f569e2e5a7e..1242ca646e7b4d2ac2af755c4b3e93587712e082 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-08-18  Bruno Haible  <bruno@clisp.org>
+
+       Document Solaris tr range and NUL limitations.
+       * doc/autoconf.texi (Limitations of Usual Tools): Mention that
+       Solaris /usr/bin/tr does not support ranges, nor the '\0' octal
+       escape.
+
 2009-08-14  Eric Blake  <ebb9@byu.net>
 
        Simplify version control metadata.
index 6bac0c3a3387afc72bb81d0ab3ecf3d9ee70671a..e997962073edb5c0d7cc62493e94c95af3660801 100644 (file)
@@ -17802,11 +17802,23 @@ $ @kbd{@{ echo moon; echo light; @} | /usr/ucb/tr -d '\012' ; echo}
 moonlight
 @end example
 
+Not all versions of @command{tr} recognize ranges of characters: at
+least Solaris @command{/usr/bin/tr} still fails to do so.  But you can
+use @command{/usr/xpg4/bin/tr} instead.
+
+@example
+$ @kbd{echo "Hazy Fantazy" | LC_ALL=C /usr/bin/tr a-z A-Z}
+HAZy FAntAZy
+$ @kbd{echo "Hazy Fantazy" | LC_ALL=C /usr/xpg4/bin/tr a-z A-Z}
+HAZY FANTAZY
+@end example
+
 Posix requires @command{tr} to operate on binary files.  But at least
-Solaris @command{/usr/ucb/tr} still fails to handle @samp{\0} as the
-octal escape for @code{NUL}.  On Solaris, when using @command{tr} to
-neutralize a binary file by converting @code{NUL} to a different
-character, it is necessary to use @command{/usr/xpg4/bin/tr} instead.
+Solaris @command{/usr/ucb/tr} and @command{/usr/bin/tr} still fail to
+handle @samp{\0} as the octal escape for @code{NUL}.  On Solaris, when
+using @command{tr} to neutralize a binary file by converting @code{NUL}
+to a different character, it is necessary to use
+@command{/usr/xpg4/bin/tr} instead.
 
 @example
 $ @kbd{printf 'a\0b\n' | /usr/ucb/tr '\0' '~' | wc -c}