quote grep parameter

This commit is contained in:
Jérémy Lecour 2019-03-18 22:59:37 +01:00
parent 8d0eddaf6f
commit 47c452f977
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ get_who() {
if [ -n "${who}" ]; then
echo "${who}"
else
LC_ALL=C who | grep $(get_tty) | tr -s ' '
LC_ALL=C who | grep "$(get_tty)" | tr -s ' '
fi
}