Here's a code snippet that I posted on Usenet, and which works with bash, and
IMO should also have worked with ksh93, but doesn't with "JM 93t+ 2009-05-01".

    while [[ $key != "x" ]]
    do
        ps -ef
        read -r -t 120 -N 1 key
        [[ $key == "a" ]] && who -a
    done

The read command seems not to get any data, read does not return on input, and
$key is always empty in that context. Though read does return on the timeout.
(I seem to recall to have reported such a read bug before; but got no answers.)
I am on a Linux 2.6.32-27-generic #49-Ubuntu SMP x86_64 GNU/Linux system.

Any pointers appreciated.

Thanks.

                                          
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to