Jilles Tjoelker fe40d6d3b1 sh: Make read's timeout (-t) apply to the entire line, not only the first
character.

This avoids using non-standard behaviour of the old (upto FreeBSD 7) TTY
layer: it reprocesses the input queue when switching to canonical mode. The
new TTY layer does not provide this functionality and so read -t worked
very poorly (first character is not echoed, cannot be backspaced but is
still read).

This also agrees with what most other shells with read -t do.

PR:		bin/129566
Reviewed by:	stefanf
Approved by:	ed (mentor)
2009-05-31 19:37:06 +00:00
..
2009-01-30 16:23:57 +00:00
2006-12-18 15:45:01 +00:00
2007-03-04 19:52:07 +00:00
2007-03-04 09:15:12 +00:00
2009-04-13 15:29:14 +00:00
2006-12-27 11:28:00 +00:00
2006-12-27 12:14:56 +00:00
2005-08-07 09:11:38 +00:00