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:
parent
38cdf73794
commit
f5fe691fc1
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue