/usr/share/modules/init/sh is in environment-modules 3.2.10-8.
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 | 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 sh $*`; }
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
|