A Red Hat bug report was resolved by quoting the regex passed to tr,
to keep the shell from interpolating.
It is suggested this information to be included in the help message:
diff --git a/src/tr.c b/src/tr.c
index 8a184f17a..84f1dfc08 100644
--- a/src/tr.c
+++ b/src/tr.c
@@ -344,6 +344,8 @@ ARRAY1 by repeating its last character as
necessary. Excess characters\n\
of ARRAY2 are ignored. Character classes expand in unspecified order;\n\
while translating, [:lower:] and [:upper:] may be used in pairs to\n\
specify case conversion. Squeezing occurs after translation or deletion.\n\
+Arguments passed to tr should be quoted, so that the shell doesn't\n\
+Interpret regex characters intended for tr.\n\
"), stdout);
emit_ancillary_info (PROGRAM_NAME);
}
--
Daniel David Dallos
Technical Support Engineer
Red Hat