Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Use of ${words[0]} in completion functions
- X-seq: zsh-workers 19360
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Use of ${words[0]} in completion functions
- Date: Sun, 11 Jan 2004 17:51:59 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I just noticed that a couple of completion functions use ${words[0]} as
the command name. That's a little misleading -- and maybe even a bug
waiting to happen -- because $_comp_options contains NO_ksharrays, and
neither of these functions resets it.
Completion/Unix/Type/_perl_modules:33: local perl=${words[0]%doc} perl_modules
Completion/bashcompinit:123: $OPTARG "${words[0]}" "${words[CURRENT-1]}" "${words[CURRENT-2]}"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author