On Wed, Aug 12, 2015 at 2:49 AM,  <mikko.rap...@bmw.de> wrote:
> This reminded me of the problems I've seen with various oe-core shell scripts:
> they are missing systematic error handling.
>
> IMO using bash and 'set -euxo pipefail' are a good approach to catch errors
> early in shell scripts. Manually checking for $? is error prone and things
> like pipes can hide them. Using undefined variables is another thing
> which should fail early before things go horribly wrong. And in build 
> automation
> I'd rather see output of -x since things can fail in mysterious ways.
> And then there's quoting....
>
> One useful guide is to use shellcheck as static analysis tool for shell 
> scripts.
>
> I guess internally bitbake uses at least set -e.
>
> Comments?

all these are good suggestions, I would recommend to open bugs for all
of these some of them might need
to cite the scripts which need fixing.
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to