[EMAIL PROTECTED] (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


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to