From c032dd0f2c2bd0cca5930b1b85ec4a7c527d995d Mon Sep 17 00:00:00 2001 From: Bon-Yong Lee Date: Wed, 10 Oct 2012 13:28:32 +0900 Subject: [PATCH] [Title] Fix argument processing including '\' [Desc.] Linux shell evaluate '\' as escape character. So argument including '\' is changed to unexpected string. Using quote mark( ' ) to argument, Fix it. [Issue] --- org.tizen.cli/doc/install/bin_/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.tizen.cli/doc/install/bin_/common.sh b/org.tizen.cli/doc/install/bin_/common.sh index 7df6755..33db6da 100755 --- a/org.tizen.cli/doc/install/bin_/common.sh +++ b/org.tizen.cli/doc/install/bin_/common.sh @@ -39,6 +39,6 @@ done OPT="$OPT_TRACE $OPT_LOGGING $OPT_PRG_NAME" escapeSpace() { - printf "%s" "$1"|sed 's/ /\\ /g' + printf "'%s'" "$1"|sed 's/ /\\ /g' } -- 2.7.4