Don't evaluate \ when reading username

This allows entering Microsoft Domain users like DOMAIN\USER.
This commit is contained in:
Juergen Hoetzel 2016-10-04 18:00:00 +02:00
parent 744f9b2a68
commit b2ac781092
1 changed files with 2 additions and 2 deletions

4
pwd.sh
View File

@ -74,7 +74,7 @@ read_pass () {
fi
if [[ -z "${2+x}" ]] ; then
read -p "
read -r -p "
Username to read? (default: all) " username
else
username="${2}"
@ -146,7 +146,7 @@ create_username () {
# Create username with password.
if [[ -z "${2+x}" ]] ; then
read -p "
read -r -p "
Username: " username
else
username="${2}"