⬅︎ Back to Read in passwords with bash
Easier solution:read -s -p "Password: " passwdsee also: the description for builtin commands in the bash man page (man bash or info bash)also interesting is read -e ... to gain readline support for editing the input line
Comment
Easier solution:
read -s -p "Password: " passwd
see also: the description for builtin commands in the bash man page (man bash or info bash)
also interesting is read -e ... to gain readline support for editing the input line