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 ']'".
--
Peter Eisentraut Sernanders väg 10:115
[EMAIL PROTECTED] 75262 Uppsala
http://yi.org/peter-e/ Sweden