Public bug reported:

environment-modules (3.2.10-8) fails to execute batch (atd) jobs under
bash 4.3.11(1)-release. This is likely caused by changes in bash
functions in follow-up to shellshock fixes to bash.

Test with environment-modules (3.2.10-8) uninstalled and this sample
script:

cat /tmp/ls.sh

#!/bin/bash
ls > out.ls

Schedule with 'batch < /tmp/ls.sh' and you will receive the correct
output.

Now install environment-modules and try the same. You will receive an
error along these lines:

sh: 46: BASH_FUNC_module%%=() {  eval `/usr/bin/modulecmd bash $*`
}: not found
sh: 46: export: BASH_FUNC_module%%: bad variable name

Admittedly, this has to be fixed upstream, but we do have a broken
package as it stands.

Tested on Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64).

** Affects: modules (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  environment-modules (3.2.10-8) fails to execute batch (atd) jobs under
- bash 4.3.11(1)-release. This is likely caused by changes in module
+ bash 4.3.11(1)-release. This is likely caused by changes in bash
  functions in follow-up to shellshock fixes to bash.
  
  Test with environment-modules (3.2.10-8) uninstalled and this sample
  script:
  
  cat /tmp/ls.sh
  
  #!/bin/bash
  ls > out.ls
  
  Schedule with 'batch < /tmp/ls.sh' and you will receive the correct
  output.
  
  Now install environment-modules and try the same. You will receive an
  error along these lines:
  
  sh: 46: BASH_FUNC_module%%=() {  eval `/usr/bin/modulecmd bash $*`
  }: not found
  sh: 46: export: BASH_FUNC_module%%: bad variable name
  
  Admittedly, this has to be fixed upstream, but we do have a broken
  package as it stands.

** Description changed:

  environment-modules (3.2.10-8) fails to execute batch (atd) jobs under
  bash 4.3.11(1)-release. This is likely caused by changes in bash
  functions in follow-up to shellshock fixes to bash.
  
  Test with environment-modules (3.2.10-8) uninstalled and this sample
  script:
  
  cat /tmp/ls.sh
  
  #!/bin/bash
  ls > out.ls
  
  Schedule with 'batch < /tmp/ls.sh' and you will receive the correct
  output.
  
  Now install environment-modules and try the same. You will receive an
  error along these lines:
  
  sh: 46: BASH_FUNC_module%%=() {  eval `/usr/bin/modulecmd bash $*`
  }: not found
  sh: 46: export: BASH_FUNC_module%%: bad variable name
  
  Admittedly, this has to be fixed upstream, but we do have a broken
  package as it stands.
+ 
+ Tested on Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-43-generic x86_64).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1422755

Title:
  environment-modules (3.2.10-8) breaks with bash 4.3.11(1)-release

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/modules/+bug/1422755/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to