Linda, I think the second example is more clear if made more explicit, like:
set -o posix f() { local POSIXLY_CORRECT; unset POSIXLY_CORRECT; shopt -p -o posix; } f
Linda, I think the second example is more clear if made more explicit, like:
set -o posix f() { local POSIXLY_CORRECT; unset POSIXLY_CORRECT; shopt -p -o posix; } f