GNU bug report logs -
#10394
Bug in tr command
Previous Next
Reported by: Raj Kambli <rkambli <at> yahoo.com>
Date: Thu, 29 Dec 2011 05:18:02 UTC
Severity: normal
Tags: notabug
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10394 in the body.
You can then email your comments to 10394 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#10394
; Package
coreutils
.
(Thu, 29 Dec 2011 05:18:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Raj Kambli <rkambli <at> yahoo.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Thu, 29 Dec 2011 05:18:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Dear GNU,
Not sure if this is bug. But I think first one is legal command that is logically similar to second which works
Thank you,
Raj.
#1-- Error
[raj <at> rajvista ~]$ echo "Raj" | tr "[[:alpha:]]" "[[:lower:]]"
tr: misaligned [:upper:] and/or [:lower:] construct
#2--Ok
[raj <at> rajvista ~]$ echo "Raj" | tr "[[:upper:]]" "[[:lower:]]"
raj
[raj <at> rajvista ~]$
[raj <at> rajvista ~]$ tr --version
tr (GNU coreutils) 6.12
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Jim Meyering.
[Message part 2 (text/html, inline)]
Added tag(s) notabug.
Request was from
Jim Meyering <jim <at> meyering.net>
to
control <at> debbugs.gnu.org
.
(Thu, 29 Dec 2011 09:16:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Jim Meyering <jim <at> meyering.net>
:
You have taken responsibility.
(Thu, 29 Dec 2011 09:16:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Raj Kambli <rkambli <at> yahoo.com>
:
bug acknowledged by developer.
(Thu, 29 Dec 2011 09:16:03 GMT)
Full text and
rfc822 format available.
Message #12 received at 10394-done <at> debbugs.gnu.org (full text, mbox):
tags 10394 notabug
thanks
Raj Kambli wrote:
> Not sure if this is bug. But I think first one is legal command that
> is logically similar to second which works
>
> #1-- Error
> [raj <at> rajvista ~]$ echo "Raj" | tr "[[:alpha:]]" "[[:lower:]]"
> tr: misaligned [:upper:] and/or [:lower:] construct
>
>
> #2--Ok
> [raj <at> rajvista ~]$ echo "Raj" | tr "[[:upper:]]" "[[:lower:]]"
> raj
> [raj <at> rajvista ~]$
Thanks for the report. However, that is not a bug.
Your first example really is an error.
As documented (see the "character classes" section of "info tr"), when
translating (i.e., not deleting), if you specify "lower" or "upper"
in the second set, you must specify "upper" or "lower" (resp.) in the
first set -- and it must be in the same relative position.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 26 Jan 2012 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 149 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.