Quote "$@" so that arguments aren't split when being called.

Signed-off-by: Justin Pettit <[email protected]>
---
 tests/ofproto-macros.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at
index 92ab9ab..5477777 100644
--- a/tests/ofproto-macros.at
+++ b/tests/ofproto-macros.at
@@ -106,7 +106,7 @@ sim_add () {
 # there.
 as() {
     if test "X$2" != X; then
-        (ovs_setenv $1; shift; $@)
+        (ovs_setenv $1; shift; "$@")
     else
         ovs_setenv $1
     fi
-- 
1.9.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to