diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-03-13 13:00:14 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-03-13 13:20:34 +0100 |
commit | feaefda90da8c453545ba740bd445b647d8c63c4 (patch) | |
tree | baa6de048b119771c712d63bf0b675a811e91468 /src | |
parent | b6d2d8da1a502b86b8aef50dc885cdce27fdf595 (diff) |
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 '[^="]$(' -- '*/*'
Diffstat (limited to 'src')
-rwxr-xr-x | src/share/common | 2 |
1 files changed, 1 insertions, 1 deletions
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") "$@" |