Blame | Last modification | View Log | RSS feed
scl(){if [ "$1" = "load" -o "$1" = "unload" ]; then# It is possible that function module is not declared in time of this# declaration so eval is used instead of direct calling of function moduleeval "module $@"else/usr/bin/scl "$@"fi}shell=`/bin/basename \`/bin/ps -p $$ -ocomm=\``[ "$shell" = "bash" ] && export -f scl # export -f works only in bashMODULESHOME=/usr/share/Modulesexport MODULESHOMEif [ "${MODULEPATH:-}" = "" ]; thenMODULEPATH=`sed -n 's/[ #].*$//; /./H; $ { x; s/^\n//; s/\n/:/g; p; }' ${MODULESHOME}/init/.modulespath`fiMODULEPATH=/etc/scl/modulefiles:$MODULEPATHexport MODULEPATH