[ovs-dev,5/9] ovs-sim: Quote "$@".
diff mbox

Message ID 1483582391-114359-5-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>
---
 utilities/ovs-sim.in | 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:07PM -0800, Justin Pettit wrote:
> Quote "$@" so that arguments aren't split when being called.
> 
> Signed-off-by: Justin Pettit <jpettit@ovn.org>

It must have been nightmarish finding this.

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

Patch
diff mbox

diff --git a/utilities/ovs-sim.in b/utilities/ovs-sim.in
index 3932974..54c4879 100755
--- a/utilities/ovs-sim.in
+++ b/utilities/ovs-sim.in
@@ -122,7 +122,7 @@  EOF
             fi
             ;;
         *)
-            (sim_setvars $1; shift; $@)
+            (sim_setvars $1; shift; "$@")
             ;;
     esac
 }