bug-coreutils
[Top][All Lists]
Advanced

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

BUG in tr when lowercase letters 'o', 'p' & 'e' file names in the same


From: Gaafer Goreish
Subject: BUG in tr when lowercase letters 'o', 'p' & 'e' file names in the same directory
Date: Fri, 26 Jun 2009 12:43:32 -0500

Hi,
I discovered that if there is a file with the one lowercase letter name 'o'
or 'p'  or 'e' in the same directory where the tr command is executed it
generates an error or unexpected result.
Following is the the simple commands used to re-produce this bug

address@hidden:# echo hello | tr [:lower:] [:upper:]
HELLO
address@hidden:# touch o
address@hidden:# echo hello | tr [:lower:] [:upper:]
tr: misaligned [:upper:] and/or [:lower:] construct
address@hidden:# rm o
address@hidden:# echo hello | tr [:lower:] [:upper:]
HELLO
address@hidden:# touch p
address@hidden:# echo hello | tr [:lower:] [:upper:]
tr: misaligned [:upper:] and/or [:lower:] construct
address@hidden:# rm p
address@hidden:# echo hello | tr [:lower:] [:upper:]
HELLO
address@hidden:# touch e
address@hidden:# echo hello | tr [:lower:] [:upper:]
hello
address@hidden:# rm e
address@hidden:# echo hello | tr [:lower:] [:upper:]
HELLO
address@hidden:#


Thanks,
Gaafer Goreish


reply via email to

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