summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-03 14:32:13 +0100
committerPaul Eggert <eggert@cs.ucla.edu>2023-04-17 09:02:07 -0700
commite704a13c9644f4f4b9a9dd4e215ee7a1707f5850 (patch)
treeed0fab9139608d97534f025de86f275f32df4647
parent0cc3c4ca8e6c550bf590ae45a916982b6ec50203 (diff)
downloadautoconf-e704a13c9644f4f4b9a9dd4e215ee7a1707f5850.tar.gz
Document limitation of BusyBox tr.
BusyBox 1.35.0 tr, which is shipped with Alpine Linux 3.17, does not support the POSIX [x*n] syntax. * doc/autoconf.texi (Limitations of Usual Tools): Document limitation of 'tr' from BusyBox.
-rw-r--r--doc/autoconf.texi14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 5d5f613e..b3c708e8 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -20368,6 +20368,20 @@ $ @kbd{echo abc | coreutils/tr bc d}
add
@end example
+On platforms with the BusyBox tools, @command{tr} does not support the
+@code{[@var{x}*@var{n}]} option syntax.
+
+@example
+$ @kbd{echo abc | tr 'abcd' '[A*4]'}
+[A*
+$ @kbd{echo abc | coreutils/tr 'abcd' '[A*4]'}
+AAA
+$ @kbd{echo xyz | tr 'a-z' '[A*]'}
+]]]
+$ @kbd{echo xyz | coreutils/tr 'a-z' '[A*]'}
+AAA
+@end example
+
Posix requires @command{tr} to operate on binary files. But at least
Solaris @command{/usr/ucb/tr} and @command{/usr/bin/tr} silently discard
@code{NUL} in the input prior to doing any translation. When using