[PATCH Cogito] Allow spaces in $HOME

From: Jonas Fonseca <fonseca@diku.dk>
Date: 2005-10-09 03:41:06
Fixes sourcing of ~/.cgrc

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>

---

diff --git a/cg-Xlib b/cg-Xlib
index b27e8b9..1644913 100755
--- a/cg-Xlib
+++ b/cg-Xlib
@@ -336,8 +336,8 @@ ARGPOS=0
 
 if [ -t 1 -a -e "$HOME/.cgrc" ]; then
 	_cg_name=${_cg_cmd#cg-}
-	_cg_defaults1="$(sed -n "/^$_cg_cmd/s/^$_cg_cmd //p" < $HOME/.cgrc)"
-	_cg_defaults2="$(sed -n "/^$_cg_name/s/^$_cg_name //p" < $HOME/.cgrc)"
+	_cg_defaults1="$(sed -n "/^$_cg_cmd/s/^$_cg_cmd //p" < "$HOME/.cgrc")"
+	_cg_defaults2="$(sed -n "/^$_cg_name/s/^$_cg_name //p" < "$HOME/.cgrc")"
 	ARGS=($_cg_defaults1 $_cg_defaults2 "${ARGS[@]}")
 fi
 
-- 
Jonas Fonseca
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Oct 09 03:41:55 2005

This archive was generated by hypermail 2.1.8 : 2005-10-09 03:41:58 EST