Public bug reported:
# lsb_release -rd
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04
# apt-cache policy environment-modules
environment-modules:
Installed: 3.2.10-9
Candidate: 3.2.10-9
Version table:
*** 3.2.10-9 500
500 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
100 /var/lib/dpkg/status
In Ubuntu 16.04, Environment Modules no longer works in non-interactive
shells, therefore modules can no longer be used by scripts.
Previous to latest update, Modules was usable from shell scripts. Now
the module command is only available in interactive shells.
In a shell script, when modules is invoked now, the following is seen
instead:
module: command not found
Workaround is to manually initialize environment-modules by sourcing
/etc/profile.d/modules.sh prior to using modules in a script.
** Affects: modules (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1549903
Title:
Environment modules no longer works in non-interactive login shell
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modules/+bug/1549903/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs