1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-26 18:01:03 +02:00

23241: Daniel Qarras: fix for _module.

This commit is contained in:
Clint Adams 2007-03-28 01:54:08 +00:00
parent 38cdf73794
commit f5fe691fc1
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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
}