summaryrefslogtreecommitdiff
path: root/builtins/read.def
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/read.def')
-rw-r--r--builtins/read.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtins/read.def b/builtins/read.def
index 64565268..8c889deb 100644
--- a/builtins/read.def
+++ b/builtins/read.def
@@ -471,7 +471,7 @@ read_builtin (list)
read_timeout->flags = SHTIMER_LONGJMP;
#if defined (HAVE_SELECT)
- read_timeout->flags |= edit ? SHTIMER_ALARM : SHTIMER_SELECT;
+ read_timeout->flags |= (edit || posixly_correct) ? SHTIMER_ALARM : SHTIMER_SELECT;
#else
read_timeout->flags |= SHTIMER_ALARM;
#endif