Zsh Mailing List Archive
Messages sorted by:
Re: problem with multicomp
- X-seq: zsh-workers 1897
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: carlos@xxxxxxxxxxxxxxxxxxxxx (Carlos Carvalho)
- Subject: Re: problem with multicomp
- Date: Fri, 2 Aug 1996 20:16:14 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <m0umLmM-00002aC@xxxxxxxxxxxxxxxxxxxxx> from Carlos Carvalho at "Aug 2, 96 12:04:00 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> With pre5, I get this:
> zsh% cd mem/7/ar
> zsh: sofar: parameter not set
I'm sure that you set the nounset option. Try the patch below to
multicomp. One may say that it is a bug to that nounset gives an error
message when subscript is out of range bug as I know zsh always did that.
The oldest version I have is zsh-2.6-beta13-hzoli13 does this.
> Also, I have autocd enabled, but multicomp doesn't get invoked when
> press TAB.
Because multicomp does not work on words in command position I think.
compctl -C should be used for that. See zshcompctl(1).
> On another issue, I missed the explanation about nocorrect now being a
> builtin. Why is this so? This is inconsistent. The other modifiers
> should then also be builtins. Also, if you use "noglob nocorrect etc."
> it doesn't work, you have to do "nocorrect noglob etc.". I think it
> should work, because noglob should work with anything, including
nocorrect is a reserved word and the other prefixes are builtins.
nocorrect must be recognized when parsing the input since spelling
correction is done during parsing so it cannot be a builtin. Reserved
words are only recognized in command position or after other reserved words
(well I oversimplificated it) that's why noroccect must come before the
other modifiers. For the parser noglob is the same as echo so if
echo nocorrect does not work, noglob nocorrect will not work either. The
only way to change this is to make the other prefixes reserved words but
that would mean that foo=exec ; $foo something will not work.
Messages sorted by: