From ddac1d8ec5e50334850ba2d91e7ec299d513bb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Wed, 9 Jul 2014 22:52:56 +0200 Subject: [PATCH] Quoting fixes --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 9d53fec..4ad000f 100755 --- a/liquidprompt +++ b/liquidprompt @@ -466,7 +466,7 @@ _lp_escape() # Yellow for root, bold if the user is not the login one, else no color. if [[ "$EUID" -ne "0" ]] ; then # if user is not root # if user is not login user - if [[ ${USER} != "$(logname 2>/dev/null || echo $LOGNAME)" ]]; then + if [[ ${USER} != "$(logname 2>/dev/null || echo "$LOGNAME")" ]]; then LP_USER="${LP_COLOR_USER_ALT}${_LP_USER_SYMBOL}${NO_COL}" else if [[ "${LP_USER_ALWAYS}" -ne "0" ]] ; then @@ -556,7 +556,7 @@ unset _lp_connection _lp_get_home_tilde_collapsed() { local tilde="~" - echo ${PWD/#$HOME/$tilde} + echo "${PWD/#$HOME/$tilde}" } # Shorten the path of the current working directory