Imported from ../bash-2.04.tar.gz.
This commit is contained in:
parent
b72432fdcc
commit
bb70624e96
387 changed files with 28522 additions and 9334 deletions
22
tests/read2.sub
Normal file
22
tests/read2.sub
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
a=4
|
||||
|
||||
read -t 2 a
|
||||
echo $?
|
||||
|
||||
echo $a
|
||||
|
||||
sleep 5 | read -t 1 a
|
||||
echo $?
|
||||
|
||||
echo $a
|
||||
|
||||
read -t -3 a
|
||||
echo $?
|
||||
|
||||
echo $a
|
||||
|
||||
# the above should all time out
|
||||
echo abcde | {
|
||||
read -t 2 a
|
||||
echo $a
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue