On Sun, Mar 08, 2009 at 07:09:55PM +0000, Ed Schouten wrote:
> Author: ed
> Date: Sun Mar 8 19:09:55 2009
> New Revision: 189542
> URL: http://svn.freebsd.org/changeset/base/189542
> Don't disable CR-to-NL translation when waiting for data to arrive.
> A difference between the old and the new TTY layer is that the new
> implementation does not perform any post-processing before returning
> data back to userspace when calling read().
> sh(1)'s read turns the TTY into a raw mode before calling select(). This
> means that the first character will not receive any ICRNL processing.
> Inherit this flag from the original terminal attributes.
> Even though this issue is not present on RELENG_*, I'm MFCing it to make
> sh(1) in jails behave better.
Wouldn't this be a problem for any other tty users too, in particular for
the other shells that use raw mode ?