aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/shell_common.c')
-rw-r--r--shell/shell_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c
index 23e5f1c25..e7c07e6a9 100644
--- a/shell/shell_common.c
+++ b/shell/shell_common.c
@@ -235,8 +235,7 @@ shell_builtin_read(struct builtin_read_params *params)
235 } 235 }
236#else 236#else
237 errno = 0; 237 errno = 0;
238 if (isatty(fd) && (params->opt_n || params->opt_d || params->opt_t || 238 if (isatty(fd)) {
239 (read_flags & BUILTIN_READ_SILENT))) {
240 int64_t key; 239 int64_t key;
241 240
242 key = read_key(fd, NULL, timeout); 241 key = read_key(fd, NULL, timeout);