Subject: Re: bug#17121: tr result is different when executed in /usr/bin

From: Bernhard Voelker <[email-masked]>
Date: Thu, 27 Mar 2014 17:46:23 +0100

On 03/27/2014 05:06 PM, Eric Blake wrote:
>> echo "Linux" | tr [:upper:] [:lower:]
>
> Underquoted.  Run:
>
> echo [:upper:] [:lower:]
>
> and then
>
> echo "[:upper:]" "[:lower:]"
>
> in the two directories to spot the difference.  (Hint - in one of your
> two directories, a shell glob is matching a one-byte file name)

FWIW: here, the 'w' program comes from the 'procps' package:

   $ ls -l /usr/bin/[:lower:]
   -rwxr-xr-x 1 root root 18896 Dec 17 16:58 /usr/bin/w

   $ /usr/bin/w --version
   w from procps-ng 3.3.8

Have a nice day,
Berny