Date: Mon, 14 Dec 1998 06:54:57 +0100 (CET) From: List User <listuser@netspace.net.au> To: freebsd-bugs@FreeBSD.ORG Message-ID: <199812140554.GAA07999@doorway.home.lan>
next in thread | raw e-mail | index | archive | help
Newsgroups: freebsd.bugs
Path: root
From: aa8vb@pagesz.net
Subject: bin/9069: "tr" command bug
X-Send-Pr-Version: 3.2
Received: (from rhh@localhost)
by stealth.dummynet. (8.9.1/8.8.8) id UAA05991;
Sun, 13 Dec 1998 20:00:21 -0500 (EST)
(envelope-from rhh)
To: FreeBSD-gnats-submit
Sender: owner-freebsd-bugs@FreeBSD.ORG
Organization: Private News Host
Message-ID: <199812140100.UAA05991@stealth.dummynet.>
X-Uidl: cafb1012d8c98006cfd11a0cbc9d1211
X-Loop: FreeBSD.org
Cc: aa8vb
Date: Mon, 14 Dec 1998 01:00:21 GMT
>Number: 9069
>Category: bin
>Synopsis: "tr" command bug
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 13 17:00:00 PST 1998
>Last-Modified:
>Originator: Randall Hopper
>Organization:
self
>Release: FreeBSD 3.0-RELEASE i386
>Environment:
Stock 3.0-RELEASE
>Description:
Run:
> tr -d "\004\032" | tr "[\200-\377]" "[\000-\177]"
Type:
a
^D
You should see:
a
You actually see:
aD
This seems like a bug. Note that piping "echo 'a'" into
this command pipe generates the correct output ("a").
>How-To-Repeat:
See above. Tried with tcsh and sh, so not shell-specific.
Maybe related to stdin being a terminal.
>Fix:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812140554.GAA07999>
