From f5fe691fc1c59e9089c8992db31ff44bf40ca4c7 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Wed, 28 Mar 2007 01:54:08 +0000 Subject: 23241: Daniel Qarras: fix for _module. --- Completion/Unix/Command/_module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion') 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 } -- cgit 1.4.1