diff --git a/jobs/JGLOBAL_ARCHIVE_TARS b/jobs/JGLOBAL_ARCHIVE_TARS index 0d53480a5b6..9f45a5fd81a 100755 --- a/jobs/JGLOBAL_ARCHIVE_TARS +++ b/jobs/JGLOBAL_ARCHIVE_TARS @@ -74,6 +74,8 @@ fi ############################################################### set +eu +# Do not export shell opts to the bash scripts in the htar/hsi wrappers +export -n SHELLOPTS ${GLOBALARCHIVESH:-${SCRgfs}/exglobal_archive_tars.py} export err=$? set +x diff --git a/jobs/JGLOBAL_ENS_ARCHIVE_TARS b/jobs/JGLOBAL_ENS_ARCHIVE_TARS index a57d405c5a1..6dc97aeaa42 100755 --- a/jobs/JGLOBAL_ENS_ARCHIVE_TARS +++ b/jobs/JGLOBAL_ENS_ARCHIVE_TARS @@ -20,6 +20,7 @@ if [[ ! -d ${COMOUT_CONF} ]]; then mkdir -p "${COMOUT_CONF}"; fi # Calls an external bash command; do not fail on unassigned/error set +eu +export -n SHELLOPTS "${SCRgfs}/exgdas_enkf_earc_tars.py" export err=$? set +x diff --git a/jobs/JGLOBAL_ENS_GLOBUS_ARCH b/jobs/JGLOBAL_ENS_GLOBUS_ARCH index 906ffbb5ec1..46ab85b4604 100755 --- a/jobs/JGLOBAL_ENS_GLOBUS_ARCH +++ b/jobs/JGLOBAL_ENS_GLOBUS_ARCH @@ -14,6 +14,7 @@ MEMDIR="ensstat" YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \ # Run globus script ############################################################### +export -n SHELLOPTS ${GLOBALGLOBUSARCHSH:-${SCRgfs}/exglobal_globus_earc.py} err=$? if [[ ${err} -ne 0 ]]; then diff --git a/jobs/JGLOBAL_FETCH b/jobs/JGLOBAL_FETCH index f830224b032..811f06515fb 100755 --- a/jobs/JGLOBAL_FETCH +++ b/jobs/JGLOBAL_FETCH @@ -3,6 +3,8 @@ source "${HOMEgfs}/ush/jjob_header.sh" -e "fetch" -c "base fetch" # Execute fetching +# Do not export shell opts to the bash scripts in the htar/hsi wrappers +export -n SHELLOPTS "${SCRgfs}/exglobal_fetch.py" err=$? diff --git a/jobs/JGLOBAL_GLOBUS_ARCH b/jobs/JGLOBAL_GLOBUS_ARCH index 856082a2df4..28b381aef0f 100755 --- a/jobs/JGLOBAL_GLOBUS_ARCH +++ b/jobs/JGLOBAL_GLOBUS_ARCH @@ -12,6 +12,7 @@ YMD=${PDY} HH=${cyc} declare_from_tmpl -rx \ # Run globus script ############################################################### +export -n SHELLOPTS ${GLOBALGLOBUSARCHSH:-${SCRgfs}/exglobal_globus_arch.py} err=$? [[ ${err} -ne 0 ]] && exit "${err}"