* Ian Campbell <i...@debian.org> [2016-12-23 00:23]: > IIRC "set -e" doesn't propagate to subshells with Bash, my > understanding of this is from http://xenbits.xen.org/gitweb/?p=osstest. > git;a=commit;h=6ffbf6eee57d0e4a7f1a669a66dc1a0ae1f7d8d6 > > But flash-kernel uses /bin/sh which these days ought to be dash not > bash and the original bug report does say: > > Shell: /bin/sh linked to /bin/dash > > Maybe there is some similar oddity with function calls in dash?
Thanks for pointing out this issue. We use /bin/sh so we're not running into this issue. However, I investigated a bit more and found out that it relates to the use of "local". See e.g. http://superuser.com/questions/363444/how-do-i-get-the-output-and-exit-value-of-a-subshell-when-using-bash-e/1103711#1103711 for an explanation. Fortunately this is easy enough to work around. -- Martin Michlmayr http://www.cyrius.com/