bug-coreutils
[Top][All Lists]
Advanced

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

bug#8587: Curious bug.


From: Pádraig Brady
Subject: bug#8587: Curious bug.
Date: Fri, 29 Apr 2011 22:06:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

On 29/04/11 20:09, Francois Boisson wrote:
> On a debian squeeze amd64.
> 
> address@hidden:~$ echo ABCD Directory | tr [:lower:] [:upper:] 
> ABCD DIRECTORY
> address@hidden:~$ cd /tmp
> address@hidden:/tmp$ echo ABCD Directory | tr [:lower:] [:upper:] 
> tr: construit [:upper:] et/ou [:lower:] mal aligné

So the operation is dependent on path.
That shows the shell is interpreting the params,
as demonstrated with:

$ touch l
$ echo [:lower:] [:upper:]
l [:upper:]

So you need to protect the params like:

$ tr '[:lower:]' '[:upper:]'

cheers,
Pádraig.





reply via email to

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