[Pkg-zsh-devel] Bug#780531: zsh: tail -F does not complete file names

Sebastian Ramacher sramacher at debian.org
Tue Mar 17 22:10:12 UTC 2015


Control: retitle -1 zsh: please provide completion for tail
Control: severity -1 wishlist

On 2015-03-17 22:48:24, Frank Terbeck wrote:
> > The completion for "tail -f " correctly completes files, but it does not for
> > "tail -F ". "tail -F <tab>" displays "completing -f" and and nothing else. I'd
> > also expect to get "completing files" there.
> 
> Zsh does not supply a completion function for tail. Thus, it should fall
> back to file-completion for programs it doesn't know for any better.
> 
> You can try this:
> 
>     % zsh -f
>     % autoload -Uz compinit; compinit
>     % tail -F <tab>
> 
> and try to reproduce the issue with a clean zsh instance with just the
> completion system loaded. You'll see that you can't; because I can't.
> 
> My guess is, that you've got a completion handler configured for tail.
> 
> Like ‘_gnu_generic’. Try this (from a failing shell of yours):
> 
>     % print ${_comps[tail]}
> 
> and that will most likely print ‘_gnu_generic’.

Indeed, it does:

$ print ${_comps[tail]}
_gnu_generic

> Long story short: This is not a bug in Debian's zsh package. But rather
> in your configuration, since it assumes _gnu_generic can handle the
> --help output of current GNU tail versions. Which it apparently can't.

So let's turn this bug in a "please provide a completion for tail" bug.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20150317/18e97ac6/attachment.sig>


More information about the Pkg-zsh-devel mailing list