Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/2] oe-run-native: ensure arguments get quoted
Date: Tue, 17 Jul 2018 14:34:17 +0200	[thread overview]
Message-ID: <212fd0ba0ad72026eece1babee9d4c3aa0ac4dbf.1531830833.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1531830833.git.paul.eggleton@linux.intel.com>

If you pass quoted arguments to oe-run-native, they need to be passed
as-is to the underlying tool. Putting quotes around $@ ensures each
argument is quoted individually.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 scripts/oe-run-native | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oe-run-native b/scripts/oe-run-native
index 1131122e685..bbdd1d8c1a8 100755
--- a/scripts/oe-run-native
+++ b/scripts/oe-run-native
@@ -60,7 +60,7 @@ tool_find=`/usr/bin/which $tool 2>/dev/null`
 
 if [ -n "$tool_find" ] ; then
     # add old path to allow usage of host tools
-    PATH=$PATH:$OLD_PATH $@
+    PATH=$PATH:$OLD_PATH "$@"
 else
     echo "Error: Unable to find '$tool' in $PATH"
     echo "Error: Have you run 'bitbake $native_recipe -caddto_recipe_sysroot'?"
-- 
2.17.1



  reply	other threads:[~2018-07-17 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-17 12:34 [PATCH 0/2] A couple of fixes for oe-run-native Paul Eggleton
2018-07-17 12:34 ` Paul Eggleton [this message]
2018-07-17 12:34 ` [PATCH 2/2] oe-find-native-sysroot: drop message if pseudo is not found Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=212fd0ba0ad72026eece1babee9d4c3aa0ac4dbf.1531830833.git.paul.eggleton@linux.intel.com \
    --to=paul.eggleton@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox