That sounds like a better idea. I'm not familiar how zsh's compatibility options, so if they can be set locally inside functions, that is indeed the better choice.
That sounds like a better idea. I'm not familiar how zsh's compatibility options, so if they can be set locally inside functions, that is indeed the better choice.