Denis Vlasenko | 59f351c | 2008-03-25 00:07:12 +0000 | [diff] [blame] | 1 | # bash 3.2 outputs: |
2 | |||||
3 | # >< | ||||
4 | { echo -n 'te'; sleep 2; echo 'st'; } | (read -t 1 reply; echo ">$reply<") | ||||
5 | # >< | ||||
6 | { sleep 2; echo 'test'; } | (read -t 1 reply; echo ">$reply<") | ||||
7 | # >test< | ||||
8 | { echo -n 'te'; sleep 1; echo 'st'; } | (read -t 2 reply; echo ">$reply<") | ||||
9 | # >test< | ||||
10 | { sleep 1; echo 'test'; } | (read -t 2 reply; echo ">$reply<") |