[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#11991: tr bug

From: Xiao, Bellon (NSN - CN/Cheng Du)
Subject: bug#11991: tr bug
Date: Thu, 19 Jul 2012 14:38:55 +0800


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 
        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.

Bellon Xiao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]