about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2007-03-28 01:54:08 +0000
committerClint Adams <clint@users.sourceforge.net>2007-03-28 01:54:08 +0000
commitf5fe691fc1c59e9089c8992db31ff44bf40ca4c7 (patch)
treef8dbe015a8e614b3aadacc27511714f98cf29f5b /Completion/Unix
parent38cdf737943a5279eec91df8caf83185ef92c80a (diff)
downloadzsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.gz
zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.tar.xz
zsh-f5fe691fc1c59e9089c8992db31ff44bf40ca4c7.zip
23241: Daniel Qarras: fix for _module.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/_module2
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
 }