This is problematic now because `shopt` flags are **global**. I think there should be a mode to tag functions with them. Note that this applies to the `echo` builtin, which is affected by `shopt -s simple_echo`. I think the function-specific options would work there.