[OE-core] [PATCH 1/2] oe-run-native: ensure arguments get quoted

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jul 17 12:34:17 UTC 2018


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 at 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




More information about the Openembedded-core mailing list