On 5 June 2015 at 17:50, Gavin Smith <[email protected]> wrote: > I tried building the latest version on Solaris 11 on the OpenCSW build > farm and got a single test failure (in index-apropos.sh). However in > trying to fix it I found another problem, which is more serious - > echoing in the terminal was disabled after I ran an interactive test > (for example, info/t/tab.sh). > > I narrowed it down to the following shell script > > #!/bin/sh > > read -t 1 FINISHED > echo obably >&2
The only reason read -t 1 echo fgsgr didn't break was, I think, because echo was a shell builtin. Running any external program after read -t in a script messes up the terminal settings. Although the bug report appears to say that this only happens in a UTF-8 locale, I found no way of stopping it by setting LANG, LC_ALL etc. The best option, I think, is to run "stty sane" at the end. According to the ksh93 change log on http://www2.research.att.com/sw/download/, someone fixed this bug on 22-9-2011.
