If you source oe-init-build-env using dash you can illicit some truly confusing errors. It would be best if we simply checked for the use of dash and threw an error to the effect of "please use bash or compatible shell when sourcing oe-init-build-env".
perhaps we could check to see if it acts like bash or dash. e.g. if [ "$RANDOM" != "" ]; then echo "I am bash" else echo " I am dash" fi
This is a bug. It's also a simple change and should make M4.
I just tried this with dash 0.5.9, and it appeared to work correctly (at least I was able to source the environment script and start a core-image-minimal build). Do you have an example of the errors that were being generated?
Joshua, Stephano has left the Yocto Team, so has Brian, so if this work for you why don't you close it as works for me. Thanks, Stephen
This appears to work with dash 0.5.9. This can be reopened if it is determined that we need to work with an older version.
On ubuntu 9 using dash, it does work when run from the same directory as the script lives in, but not otherwise.
Sorry, I meant debian 9.
Let's add a check in the init script so that it will fail early and loudly if dash is used and the CWD isn't correct.
Fixed in 09923bbf467612a481a058d35f3717189b72477f ("oe-init-build-env: Error out when failed to locate cwd")