i-bash/tests/read6.sub
2009-09-12 16:47:00 +00:00

10 lines
142 B
Text

# test read with a timeout of 0 -- input polling
echo abcde | { sleep 0.25 ; read -t 0; }
echo $?
read -t 0 < $0
echo $?
read -t 0
echo $?