Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 1998 17:20:01 -0800 (PST)
From:      Randall Hopper <aa8vb@pagesz.net>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/9069: "tr" command bug
Message-ID:  <199812150120.RAA02924@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/9069; it has been noted by GNATS.

From: Randall Hopper <aa8vb@pagesz.net>
To: Bill Fenner <fenner@parc.xerox.com>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: bin/9069: "tr" command bug
Date: Mon, 14 Dec 1998 20:18:51 -0500

 Bill Fenner:
  |>	Maybe related to stdin being a terminal.
  |
  |Right.  Try the same with "cat" -- for example, type "a^D" (with no CR)
  |into "cat".  You see "aaD".  This is just because the ^D is printed as
  |"^" "D" "^H" "^H".
  |
  |Use "echo" or some other way of taking input from somewhere other than
  |the terminal if you don't want to get confused by this.
 
 Thanks.  Yes, a "^D" string being printed didn't occur to me.  I tried to
 this on other UNIXes and didn't see this, so I presumed to quickly that
 this might be a bug.
 
 Besides not taking input from the terminal, is there any way that you know
 of to disable printing of the "^D" when input is from the terminal?  I
 checked stty(1) with no success.
 
 Thanks,
 
 Randall
 

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?199812150120.RAA02924>