Lmod/lmod-8.1.17-echo_stderr.patch
2020-10-29 17:22:35 +08:00

21 lines
700 B
Diff

--- Lmod-8.1.17/init/bash.in 2019-12-11 11:20:35.213144077 -0800
+++ Lmod-8.1.17/init/bash.in.new 2019-12-11 11:17:24.024473520 -0800
@@ -18,7 +18,7 @@
export LMOD_PKG=@PKGV@
if [ -n "${__lmod_vx:-}" ]; then
- echo "Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for this output ($LMOD_PKG/init/bash)"
+ echo "Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for this output ($LMOD_PKG/init/bash)" 1>&2
fi
export LMOD_DIR=$LMOD_PKG/libexec
@@ -163,7 +163,7 @@
# Restoring XTRACE and VERBOSE states.
if [ -n "${__lmod_vx:-}" ]; then
- echo "Shell debugging restarted"
+ echo "Shell debugging restarted" 1>&2
set -$__lmod_vx;
unset __lmod_vx;
fi;