repo.or.cz
/
bush.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
init version.
[bush.git]
/
tests
/
6.cmd
/
read
/
read6.sub
blob
abfe89db23bda1f0402afccd0dd71acf17d78596
1
# test read with a timeout of 0 -- input polling
2
# sleep with fractional seconds argument is not universal
3
echo abcde | { sleep 0.25 2>/dev/null ; read -t 0; }
4
echo $?
5
6
read -t 0 < $0
7
echo $?
8
9
read -t 0
10
echo $?