With the following in mind:
Is set +h
also set in script1.sh (and its sub-shells)?
Variables need to be explicitly exported to be recognized in a sub-shell, which makes me wonder if set -/+ X
needs to be set in every sub-shell.
Haven't been able to find this info in the bash man page.
Thanks in advance!