From feaefda90da8c453545ba740bd445b647d8c63c4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 13 Mar 2013 13:00:14 +0100 Subject: Fix quote command embedded in another command (thanks, Daniel!) NB! There seems to be many more of these, e.g. revealed by this command: git grep '[^="]$(' -- '*/*' --- src/share/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/common b/src/share/common index 9329ce4..6cf38f6 100755 --- a/src/share/common +++ b/src/share/common @@ -105,7 +105,7 @@ su_monkeysphere_user() { # printf -v CMDLINE "%q " "$@" local CMDLINE="$(perl -0 -e "foreach (@ARGV) {s/'/'\\\\''/g; print \"'\$_' \"}" "$@")" - case $(id -un) in + case "$(id -un)" in # if monkeysphere user, simply execute in current shell "$MONKEYSPHERE_USER") "$@" -- cgit v1.2.3