From 7ac5827948df7b16a2d31e1d36f7c431204def07 Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Wed, 18 Jul 2012 05:43:23 +0100 Subject: [PATCH] Found another function to remove subshell from. --- init/msm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init/msm b/init/msm index 651a737..4803156 100755 --- a/init/msm +++ b/init/msm @@ -1325,7 +1325,8 @@ manager_stop_all_servers_now() { # Get the value of a global manager property # $1: The name of the property manager_property() { - eval echo "\$SETTINGS_$1" + unset RETURN + eval RETURN=\"\$SETTINGS_$1\" } @@ -1405,7 +1406,8 @@ command_version() { # Displays config values used by MSM command_config() { for ((i=0; i<$SETTING_COUNT; i++)); do - echo "${SETTING_NAME[$i]}=\"$(manager_property "${SETTING_NAME[$i]}")\"" + manager_property "${SETTING_NAME[$i]}" + echo "${SETTING_NAME[$i]}=\"$RETURN\"" done }