quote grep parameter

This commit is contained in:
Jérémy Lecour 2019-03-18 22:59:37 +01:00
parent 8d0eddaf6f
commit 47c452f977

View file

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