diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-03-28 01:54:08 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-03-28 01:54:08 +0000 |
commit | f5fe691fc1c59e9089c8992db31ff44bf40ca4c7 (patch) | |
tree | f8dbe015a8e614b3aadacc27511714f98cf29f5b | |
parent | 38cdf737943a5279eec91df8caf83185ef92c80a (diff) | |
download | zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.gz zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.xz zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.zip |
23241: Daniel Qarras: fix for _module.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_module | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 229dc96c6..7815d3e1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-28 Clint Adams <clint@zsh.org> + + * 23241: Daniel Qarras: Completion/Unix/Command/_module: + fix for _module. + 2007-03-27 Peter Stephenson <pws@csr.com> * unposted: Src/jobs.c: fix uninitialized variable in 23238. diff --git a/Completion/Unix/Command/_module b/Completion/Unix/Command/_module index 1df12a3d9..075e1c340 100644 --- a/Completion/Unix/Command/_module +++ b/Completion/Unix/Command/_module @@ -85,7 +85,7 @@ _module_available_modules() { if (( [[ -n "$MODULEPATH" ]] && [[ ${+_available_modules} -eq 0 ]] )); then - _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g')) + _available_modules=($(find ${(e)=MODULEPATH//:/ } -xtype f -print 2>/dev/null | grep -v \.version | sed -e 's,\('${${(e)=MODULEPATH//:/\/\\\|}%\\\|}'\),,g' -e 's,^/*,,g')) fi } |