Solution... this works nicely:
# print opening html
echo ""
# on error, print msg and exit $STATUS
trap myERRhandler ERR
myERRhandler () {
local STATUS=$?
printf "Trouble: trapped ERR, exiting %s\n" $STATUS >& 2
exit $STATUS
}
# on exit, print
Summary: I don't see the best way to (in bash) trap/handle an ERR
inside
a group-command "{}" that is in a pipeline. I have a way that seems
to
work, see "(F)", but little confidence that it's the best way, and
some
suspicion that the overall effort is misguided.
Detail:
I'd like to trap and hand