bug-coreutils
[Top][All Lists]
Advanced

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

Re: tr: [:upper:] and [:lower:] in SET1


From: Jim Meyering
Subject: Re: tr: [:upper:] and [:lower:] in SET1
Date: Sun, 21 Oct 2007 18:21:33 +0200

address@hidden (Per Starbäck) wrote:
> tr (GNU coreutils) 6.9
>
>   $ echo Foo | tr '[:upper:]' '[X*]'
>   tr: misaligned [:upper:] and/or [:lower:] construct
>
> Other character sets work like this, at least this one:
>
>   $ echo Foo | tr '[:alnum:]' '[X*]'
>   XXX
>
> I guess there is a bug in code that is there to check if [:upper:] or
> [:lower:] in SET2 is valid.

Wow.  A 15-year-old bug in tr.
Thanks for reporting that.
It's fixed, now:

    http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=af5d0c363a52e7

The one in printf was even older, fixed here:
Thanks for reporting it, Bruno.

    http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=b1ab7101aab7473326




reply via email to

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