[bitbake-devel] [PATCH 2/2] bin/toaster: set shwordsplit if using zsh.

Liam R. Howlett Liam.Howlett at windriver.com
Wed Aug 3 19:57:50 UTC 2016


Since this script is meant to be sourced, shwordsplit has to be
explicitly set to ensure the variable MANAGE is set correctly and
functions independent of the users shwordsplit setting.

Signed-off-by: Liam R. Howlett <Liam.Howlett at WindRiver.com>
---
 bin/toaster | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/toaster b/bin/toaster
index 66157d0..038e93b 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -130,6 +130,7 @@ if [ -n "$BASH_SOURCE" ] ; then
     TOASTER=${BASH_SOURCE}
 elif [ -n "$ZSH_NAME" ] ; then
     TOASTER=${(%):-%x}
+    set -o shwordsplit
 else
     TOASTER=$0
 fi
-- 
1.9.1




More information about the bitbake-devel mailing list