summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2003-01-23 19:58:16 +0000
committerfjoe <fjoe@FreeBSD.org>2003-01-23 19:58:16 +0000
commit95a61b2a6f40d7c7fd7a9c2f8187be87f06784c4 (patch)
tree32e3d5fc23f003c255417b80f3697bf00120db5e
parentb24e1d7b2a81cd82a8673d1c9cf37f002dfe2e34 (diff)
downloadFreeBSD-src-95a61b2a6f40d7c7fd7a9c2f8187be87f06784c4.zip
FreeBSD-src-95a61b2a6f40d7c7fd7a9c2f8187be87f06784c4.tar.gz
Do not loose trailing spaces when printing prompt messages.
-rw-r--r--usr.sbin/adduser/rmuser.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/adduser/rmuser.sh b/usr.sbin/adduser/rmuser.sh
index 67c9a83..445b974 100644
--- a/usr.sbin/adduser/rmuser.sh
+++ b/usr.sbin/adduser/rmuser.sh
@@ -159,10 +159,10 @@ rm_user() {
#
prompt_yesno() {
# The argument is required
- [ -n "$1" ] && msg=$1 || return
+ [ -n "$1" ] && msg="$1" || return
while : ; do
- echo -n $msg
+ echo -n "$msg"
read _ans
case $_ans in
[Nn][Oo]|[Nn])
@@ -300,7 +300,7 @@ for _user in $userlist ; do
continue
fi
_homedir=`echo $userrec | awk -F: '{print $9}'`
- if prompt_yesno "Remove user's home directory ($_homedir)?: "; then
+ if prompt_yesno "Remove user's home directory ($_homedir)? "; then
pw_rswitch="-r"
fi
else
OpenPOWER on IntegriCloud