On Thu, Jul 13, 2000 at 12:54:50AM +0200, Peter Eisentraut wrote:
: Lars J. Aas writes:
: > : -for warning in `IFS=,; echo syntax,$WARNINGS,$warnings | tr [A-Z] [a-z]`
: > : +for warning in `IFS=,; echo syntax,$WARNINGS,$warnings | tr '[A-Z]' '[a-z]'`
: >
: > Why use the braces at all? Are they really necessary? tr A-Z a-z has
: > always worked for me, and that format won't be expanded by the shell.
:
: Contrary to urban legend (and some implementations) the brackets don't do
: anything special in tr. What's written there is simply "translate '[' to
: '[', 'A' to 'a', ... 'Z' to 'z', ']' to ']'".
That's what I thought happened to the brackets too - being translated into
itself, but in Autoconf you have both the shell and m4 giving the brackets
special meaning, which can screw things up.
Lars J