bash built-in read timeout (-t) doesn't work
Bug #1283309 reported by
Miroslav Prašil
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Expired
|
Low
|
Unassigned |
Bug Description
This should timeout after 2 seconds (based on bash man page) but it doesn't:
#read -t 2 test
(waits infinitely, only terminates after pressing [enter] or ctrl-C, etc..)
bash --version:
GNU bash, version 4.2.25(1)-release (x86_64-
Installed bash package version:
4.2-2ubuntu2.1
$ lsb_release -rd
Description: Ubuntu 12.04.4 LTS
Release: 12.04
affects: | xubuntu-meta (Ubuntu) → bash (Ubuntu) |
tags: | added: precise |
To post a comment you must log in.
Not sure if important, but this is running on a virtualbox virt. machine. I've just tried to run the same on EC2 machine with same package version and it seems to be working fine. (timeouts as expected) So this *might* be machine specific, though I don't have any other issues and this seems really odd.