aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-04-10 08:43:31 +0100
committerRon Yorston <rmy@pobox.com>2018-04-10 08:43:31 +0100
commit5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7 (patch)
tree1de8cbecff1316b821844533a947bdbae11bee2a
parenta316078ad17ba2dc6483d6cc0f63ff5c53b04d91 (diff)
downloadbusybox-w32-5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7.tar.gz
busybox-w32-5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7.tar.bz2
busybox-w32-5cb004ad7c8fdacb30dbec5ff5398ad5f6d02cf7.zip
ash: make 'read -s' work
Raw input should also be used when the -s flag is present. Related to GitHub issue #112.
-rw-r--r--shell/shell_common.c3
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);