Date: Sun, 13 Dec 1998 20:00:21 -0500 (EST) From: aa8vb@pagesz.net To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: aa8vb@pagesz.net Subject: bin/9069: "tr" command bug Message-ID: <199812140100.UAA05991@stealth.dummynet.>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812140100.UAA05991>
