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

Message ID 1483582391-114359-6-git-send-email-jpettit@ovn.org
State Accepted
Headers show

Commit Message

Justin Pettit Jan. 5, 2017, 2:13 a.m. UTC
Quote "$@" so that arguments aren't split when being called.

Signed-off-by: Justin Pettit <jpettit@ovn.org>
---
 tests/ofproto-macros.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff Jan. 5, 2017, 3:36 p.m. UTC | #1
On Wed, Jan 04, 2017 at 06:13:08PM -0800, Justin Pettit wrote:
> Quote "$@" so that arguments aren't split when being called.
> 
> Signed-off-by: Justin Pettit <jpettit@ovn.org>

Acked-by: Ben Pfaff <blp@ovn.org>

Patch
diff mbox

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