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 /Completion/Unix/Command/_module | |
| parent | unposted: uninitialized variable in 23238 (diff) | |
| download | zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.gz zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.bz2 zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.lz zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.xz zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.zst zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.zip | |
23241: Daniel Qarras: fix for _module.
Diffstat (limited to 'Completion/Unix/Command/_module')
| -rw-r--r-- | Completion/Unix/Command/_module | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
