1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-02 00:41:44 +02:00

19365: avoid use of $words[0]

This commit is contained in:
Oliver Kiddle 2004-01-14 16:56:37 +00:00
parent 28156d76a3
commit 87821ed853
2 changed files with 6 additions and 1 deletions

@ -1,3 +1,8 @@
2004-01-14 Oliver Kiddle <opk@zsh.org>
* spotted by Bart: 19365: Completion/Unix/Type/_perl_modules:
avoid use of $words[0]
2004-01-13 Doug Kearns <djkea2@mugca.its.monash.edu.au>
* 19358: Completion/Unix/Command/_elinks: update for version 0.9.0

@ -30,7 +30,7 @@ _perl_modules () {
_perl_modules_caching_policy
fi
local perl=${words[0]%doc} perl_modules
local perl=${words[1]%doc} perl_modules
if whence $perl >/dev/null; then
perl_modules=_${${perl//[^[:alnum:]]/_}#_}_modules
elif (( ${+commands[perl]} )); then