On Sat, 2016-12-17 at 14:09 -0800, Martin Michlmayr wrote: > It seems the exit called from find_dtb_file() doesn't exit the whole > program. I know this is normal because it's called in a subshell, > but > flash-kernel itself does a "set -e" so I thought any exit should > trigger the whole script to stop. > > Ian, any idea?
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? Ian.