> [dash's read does not have -s to turn off echo]
You can turn off echoing using a sequence like
settings=$(stty -g)
stty -echo
IFS= read -r password
stty "$settings"
Some additional code is required to restore the terminal settings even
if SIGINT, SIGQUIT, SIGTERM or similar happens.
--
Jille
tags 651446 + upstream wontfix
quit
Hi,
Glenn Haecker wrote:
> POSIX compliant or not, it would be nice to have an -s (silent) option fro the
> builtin read command. It's quite useful for inputing a password.
Thanks, sounds useful indeed.
dash is meant to be as small and fast as possible give
Package: dash
Version: 0.5.7-2
Severity: wishlist
Dear Maintainer,
POSIX compliant or not, it would be nice to have an -s (silent) option fro the
builtin read command. It's quite useful for inputing a password.
Thanks for considering it.
-- System Information:
Debian Release: wheezy/sid
AP
3 matches
Mail list logo