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.
