Package: environment-modules
Version: 4.2.2-1

environment-modules package installs the /etc/profile.d/modules.sh script
to be initialized in interactive shells (like those obtained when running a
terminal in a graphical session).

The main part of this initialization is the definition of the 'module'
shell function, which is set for export in order to be found in sub-shells.

In a graphical desktop environment, when a bash shell is obtained via a
terminal application like gnome-terminal or xterm, the 'module' shell
function is found undefined although /etc/profile.d/modules.sh is correctly
executed during the initialization of the graphical desktop environment.

Steps to reproduce the issue:

1. apt-get install environment-modules
2. disconnect the current desktop session
3. log-in to get a new desktop session
4. start a terminal app (like gnome-terminal or xterm)
5. in this terminal app, try 'module --version'

As a result, a 'command not found' error is obtained. Whereas the 'module'
shell function is expected to be found.

Reply via email to