[ovs-dev] [PATCH 6/9] ofproto-macros: Quote "$@".

Justin Pettit jpettit at ovn.org
Thu Jan 5 02:13:08 UTC 2017


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

Signed-off-by: Justin Pettit <jpettit at ovn.org>
---
 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



More information about the dev mailing list