diff options
-rw-r--r-- | shell/shell_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index aa0791285..94c94a147 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
@@ -238,7 +238,8 @@ shell_builtin_read(void FAST_FUNC (*setvar)(const char *name, const char *val), | |||
238 | } | 238 | } |
239 | #else | 239 | #else |
240 | errno = 0; | 240 | errno = 0; |
241 | if (isatty(fd) && (opt_n || opt_d || opt_t)) { | 241 | if (isatty(fd) && (opt_n || opt_d || opt_t || |
242 | (read_flags & BUILTIN_READ_SILENT))) { | ||
242 | int64_t key; | 243 | int64_t key; |
243 | 244 | ||
244 | key = read_key(fd, NULL, timeout); | 245 | key = read_key(fd, NULL, timeout); |