Neither of these is a situation where the developer should have been
relying on errexit to save them.
My ultimate point with that example was to demonstrate that ERR_EXIT doesn't achieve my goal.
My goal is to be able to run a Zsh script with the guarantee that if anything goes wrong the script stops immediately where by "anything goes wrong" I mean any command whose result is not otherwise checked returns a non-zero exit status. If you don't agree that this would be a useful feature, then we can stop the discussion.
If you think that ERR_EXIT achieves my goal, then it would be useful if you could give me an example of a legitimate use of/reliance on ERR_EXIT. I could then try to build a better example to demonstrate that ERR_EXIT is not achieving my goal. If I fail to convince you that ERR_EXIT does not achieve my goal, then too we can stop the discussion.
I would abstain from the decision and leave it to others, but I don't
believe it can be done without some rather invasive changes.
Indeed, that remains an open question to me and I agree that the new option shouldn't be added if it requires too much additional complexity.
Philippe