#%Module4.6 set scriptpath example/source-script-in-modulefile/bar-2.1 switch -- [module-info shelltype] { sh { source-sh bash $scriptpath/bar-setup.sh } csh { source-sh tcsh $scriptpath/bar-setup.csh } }