From 5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 10 Apr 2018 08:43:31 +0100 Subject: ash: make 'read -s' work Raw input should also be used when the -s flag is present. Related to GitHub issue #112. --- shell/shell_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), } #else errno = 0; - if (isatty(fd) && (opt_n || opt_d || opt_t)) { + if (isatty(fd) && (opt_n || opt_d || opt_t || + (read_flags & BUILTIN_READ_SILENT))) { int64_t key; key = read_key(fd, NULL, timeout); -- cgit v1.2.3-55-g6feb