Subject: Re: bin/10879: su does not reset terminal settings after Ctrl-C
To: None <gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org,>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 08/24/2000 16:02:02
[ On Friday, August 25, 2000 at 02:19:59 (+1000), Robert Elz wrote: ]
> Subject: Re: bin/10879: su does not reset terminal settings after Ctrl-C 
>
>   | My remaining problem with *BSD tty behaviour, which is demonstrated by
>   | getpass(), is the mis-handling of EOF.  Traditionally I recall ^D
>   | working at any point on a line.
> 
> Never.   Not ever, not even once.   ^D has always meant "end the current
> input line here, without including the ^D character".   If there's nothing
> in the line, that results in a 0 length read, which is EOF.  If there's
> anything already in the line, the program gets it without a \n on the end.
> 
> That is truly ancient behaviour (like 5th edition unix, and probably 1st)>

No doubt you're right.

My fingers seem to remember otherwise, but they've possibly been
confused by intervening misadventures....

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>