diff options
author | Chet Ramey <chet.ramey@case.edu> | 2011-12-07 09:25:49 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2011-12-07 09:25:49 -0500 |
commit | 30915f176a11582596ab3fbffd304ac17f829bc9 (patch) | |
tree | fc4fdd966d6767ed9aabea58827b3a8981004bf0 /builtins | |
parent | 09767ff09d0d1c3202881d3a09325f5ddbfceb1b (diff) | |
download | bash-30915f176a11582596ab3fbffd304ac17f829bc9.tar.gz |
commit bash-20080710 snapshot
Diffstat (limited to 'builtins')
-rw-r--r-- | builtins/read.def | 2 | ||||
-rw-r--r-- | builtins/read.def~ | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/builtins/read.def b/builtins/read.def index 4945538d..503d2ef0 100644 --- a/builtins/read.def +++ b/builtins/read.def @@ -67,6 +67,8 @@ $END #include <stdio.h> +#include "bashansi.h" + #if defined (HAVE_UNISTD_H) # include <unistd.h> #endif diff --git a/builtins/read.def~ b/builtins/read.def~ index d7a43202..4945538d 100644 --- a/builtins/read.def~ +++ b/builtins/read.def~ @@ -51,7 +51,8 @@ Options: -t timeout time out and return failure if a complete line of input is not read withint TIMEOUT seconds. The value of the TMOUT variable is the default timeout. TIMEOUT may be a - fractional number. + fractional number. The exit status is greater than 128 if + the timeout is exceeded -u fd read from file descriptor FD instead of the standard input Exit Status: @@ -374,7 +375,7 @@ read_builtin (list) return (EXECUTION_FAILURE); #else input_string[i] = '\0'; /* make sure it's terminated */ - retval = EXECUTION_FAILURE; + retval = 128+SIGALRM;; goto assign_vars; #endif } |