1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-08 02:19:20 +00:00
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
..
2005-08-13 15:04:30 +00:00
2006-02-04 14:37:50 +00:00
2005-08-13 08:26:58 +00:00
2006-04-16 11:54:01 +00:00