This file is indexed.

/usr/share/lmod/5.8/init/sh is in lmod 5.8-1.

This file is owned by root:root, with mode 0o755.

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
29
30
31
32
33
#!/bin/bash
# -*- shell-script -*-

LMOD_PKG="/usr/share/lmod/lmod"
LMOD_DIR="/usr/share/lmod/lmod/libexec/"
LMOD_CMD="/usr/share/lmod/lmod/libexec/lmod"
MODULESHOME="/usr/share/lmod/lmod"
export LMOD_CMD
export LMOD_PKG
export LMOD_DIR
export MODULESHOME
module()
{
  eval `$LMOD_CMD bash "$@"`
}
export LMOD_DIR

clearMT()
{
  eval $($LMOD_DIR/clearMT_cmd bash)
}

########################################################################
#  ml is a shorthand tool for people who can't type moduel, err, module
#  It is also a combination command:
#     ml            -> module list
#     ml gcc        -> module load gcc
#     ml -gcc intel -> module unload gcc; module load intel
#  It does much more do: "ml --help" for more information.
ml()
{
  eval $($LMOD_DIR/ml_cmd "$@")
}