Improper reference to modulecmd in bash_completion script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
modules (Debian) |
Fix Released
|
Unknown
|
|||
modules (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Bash completion doesn't work for this package.
And this is because path specified to "modulecmd" binary doesn't match real "modulecmd" location.
========
$ which modulecmd
/usr/bin/modulecmd
========
an extract of bash_completion script:
========
$ cat /etc/bash_
#
# Bash commandline completion (bash 3.0 and above) for Modules 3.2.9
#
_module_avail() {
/usr/share/
/:$/d;
/:ERROR:/d;
s#^\(
s#/(default)##g;
s#/*$##g;'
}
...
========
As a consequence execution of "_module_avail" gives an error:
========
$ _module_avail
bash: /usr/share/
========
Attached is a simple patch that fixes this issue.
My system is:
$lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Though this package is only available for Quantal so installed it from corresponding .deb
$ apt-cache policy environment-modules
environment-
Installed: 3.2.9c-2
Candidate: 3.2.9c-2
Version table:
*** 3.2.9c-2 0
100 /var/lib/
BTW it seems like the same issue is present in Debian package http://
Changed in modules (Debian): | |
status: | Unknown → New |
Changed in modules (Debian): | |
status: | New → Fix Released |
Changed in modules (Ubuntu): | |
status: | Confirmed → Fix Released |
The attachment "modules.diff" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]