git » libfiu » commit 67b4a22

fiu-ctrl: Prevent unwanted bash parameter expansion

author Alberto Bertogli
2009-07-03 00:24:56 UTC
committer Alberto Bertogli
2009-07-03 00:24:56 UTC
parent 7b96b649a32c828e75a91b0ae2b5318b1595966c

fiu-ctrl: Prevent unwanted bash parameter expansion

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>

utils/fiu-ctrl +1 -1

diff --git a/utils/fiu-ctrl b/utils/fiu-ctrl
index 130af8f..3683c23 100755
--- a/utils/fiu-ctrl
+++ b/utils/fiu-ctrl
@@ -140,7 +140,7 @@ function send_cmd_fifo() {
 	# echoes the reply
 	P=$1
 	shift 1
-	echo $@ > $P.in
+	echo "$@" > $P.in
 	R="`cat $P.out`"
 	if [ "$R" -eq -1 ]; then
 		echo "$P: Command returned error"