Jilles Tjoelker c4539460e3 sh: Improve error handling in read builtin:
* If read -t times out, return status as if interrupted by SIGALRM
  (formerly 1).
* If a trapped signal interrupts read, return status 128+sig (formerly 1).
* If [EINTR] occurs but there is no trap, retry the read (for example
  because of a SIGWINCH in interactive mode).
* If a read error occurs, write an error message and return status 2.

As before, a variable assignment error returns 2 and discards the remaining
data read.
2013-05-03 15:28:31 +00:00
..
2013-03-15 20:12:54 +00:00
2013-04-23 16:08:24 +00:00
2013-04-28 22:52:43 +00:00
2012-12-28 22:06:33 +00:00
2013-03-15 20:12:54 +00:00
2013-04-27 21:59:43 +00:00
2013-03-15 20:12:54 +00:00
2013-04-26 17:56:35 +00:00
2013-03-15 20:12:54 +00:00
2012-07-15 21:12:22 +00:00