GNU bug report logs - #17121
tr result is different when executed in /usr/bin

Previous Next

Package: coreutils;

Reported by: BenoƮt DUNAND-LAISIN <benoit.dunand-laisin <at> prologism.fr>

Date: Thu, 27 Mar 2014 15:49:01 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 17121 <at> debbugs.gnu.org, eblake <at> redhat.com,  benoit.dunand-laisin <at> prologism.fr
Subject: bug#17121: tr result is different when executed in /usr/bin
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




This bug report was last modified 11 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.