[Title] Fix argument processing including '\'
authorBon-Yong Lee <bonyong.lee@samsung.com>
Wed, 10 Oct 2012 06:16:39 +0000 (15:16 +0900)
committerBon-Yong Lee <bonyong.lee@samsung.com>
Wed, 10 Oct 2012 06:16:39 +0000 (15:16 +0900)
[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

index 33db6da..efa0452 100755 (executable)
@@ -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' | sed 's/ /\\ /g'
 }