This issue depends on the way non-interactive shell session
initialization is configured on the system. New Modules releases force
ENV and BASH_ENV variables to make shells source
/etc/profile.d/modules.sh to get module shell function defined. But not
all shells react to that.

Here are some tests made on Ubuntu 18.04:

$ cat test.sh
module -V
$ module -V
Modules Release 4.1.1 (2018-02-17)

$ bash test.sh
Modules Release 4.1.1 (2018-02-17)

$ sh test.sh
test.sh: 2: test.sh: module: not found
$ zsh test.sh
test.sh:2: command not found: module

To go further on this issue targeted shells should be expressed. We may
also look at what changed on Ubuntu 16.04 regarding shell non-
interactive initialization.

-- 
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

Reply via email to