From b2ac78109207b526de29184a26ce42c5136e5243 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Tue, 4 Oct 2016 18:00:00 +0200 Subject: [PATCH] Don't evaluate \ when reading username This allows entering Microsoft Domain users like DOMAIN\USER. --- pwd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwd.sh b/pwd.sh index 72f6aae..8164abf 100755 --- a/pwd.sh +++ b/pwd.sh @@ -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}"