/usr/share/modules/init/bash is in environment-modules 3.2.10-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | if [ "${MODULE_VERSION:-}" = "" ]; then
MODULE_VERSION_STACK="3.2.10"
MODULE_VERSION="3.2.10"
export MODULE_VERSION
else
MODULE_VERSION_STACK="$MODULE_VERSION"
fi
export MODULE_VERSION_STACK
module() { eval `/usr/bin/modulecmd bash $*`; }
export -f module
MODULESHOME=/usr/share/modules
export MODULESHOME
if [ "${LOADEDMODULES:-}" = "" ]; then
LOADEDMODULES=
export LOADEDMODULES
fi
if [ "${MODULEPATH:-}" = "" ]; then
MODULEPATH=`sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`
export MODULEPATH
fi
if [ ${BASH_VERSINFO:-0} -ge 3 ] && [ -r ${MODULESHOME}/init/bash_completion ]; then
. ${MODULESHOME}/init/bash_completion
fi
|