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
signature.asc
Description: Digital signature