Subject: Re: bug#8587: Curious bug.

From: Pádraig Brady <[email-masked]>
Date: Fri, 29 Apr 2011 22:06:56 +0100

On 29/04/11 20:09, Francois Boisson wrote:
> On a debian squeeze amd64.
> 
> francois@totoche:~$ echo ABCD Directory | tr [:lower:] [:upper:] 
> ABCD DIRECTORY
> francois@totoche:~$ cd /tmp
> francois@totoche:/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.