Hi,

We found a bug of tr, the version is tr (coreutils) 5.2.1
Here is the symptom:
When there is a file named e or r under current directory, tr will take 
effect,like:
        echo hello |tr [a-z] [A-Z] 
        echo hello |tr [:lower:] [:upper:]
will return hello

And when is a file named l, o, p, u or w under current directory, tr will give 
error message like:
        echo hello |tr [a-z] [A-Z] 
        echo hello |tr [:lower:] [:upper:]
gives : tr: misaligned [:upper:] and/or [:lower:] construct


But if you try 
        echo kkhh |tr "[a-z]" "[A-Z]" 
        echo kkhh |tr "[:lower:]" "[:upper:]"
There will be no error and it takes effect.

Brs
Bellon Xiao


Reply via email to