# read -t. echo line | { read -t 5 v; echo "ready: $? [$v]"; } read -t 1 v /dev/null; echo "missing: $?" read -t x v 2>/dev/null