[...] > On page 3106 line 105084 section read (SYNOPSIS), > change:<blockquote><pre>read [-r] > <i>var</i>...</pre></blockquote>to:<blockquote><pre>read [-r] [-d > <i>delim</i>] <i>var</i>...</pre></blockquote> [...]
About read -d, when stdin is a terminal device, I find that all of ksh93, zsh and bash (not mksh) do the equivalent of "stty -icanon" at least. ksh93 also sets eol to the corresponding character (even though that should not be relevant with -icanon) That's so read can return as soon as an unescaped delimiter is entered, but that means the user loses the line editor. I find that none of them change the tty settings upon suspend/resume. A note about it should probably be added to the standard, maybe allowing that behaviour if not requiring it. On a related note. set -o vi (or emacs) on ksh93 enables the vi (emacs) line editor for read (not when -d is used). Don't know if it's worth mentioning. -- Stephane
