Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Completion of prefix redirections is -command- instead of -redirect-



On Wed, Aug 26, 2015 at 8:18 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Aug 26,  5:39am, Daniel Shahaf wrote:
> }
> } Typing "<" and <TAB> at the prompt tries these completions [wrapped by me]:
> }
> } tags in context :completion::complete:-command-::
>
> Confirm this is new since 5.0.8.
>
> Looking at _complete_debug output, it seems to be ignoring the "<" and
> completing as if the buffer were empty; there is nothing in the $words
> array when entering compsys, so of course it tries commands.
>
> Interestingly, compctl doesn't have this problem (though maybe not for
> the right reason).

249999cfb485914fe6f8630b1f4079e1227a5097 is the first bad commit
commit 249999cfb485914fe6f8630b1f4079e1227a5097
Author: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Date:   Sun Aug 9 18:40:54 2015 +0100

    36025: Fix completion aftoer "foo=bar; setopt ".

    Done by catching a case that doesn't seem to be handled otherwise,
    so there's some hope it doesn't screw up too much.


With the above commit reverted, < <tab> completes files again, but so
does ; <tab>.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author