Missing programmable bash completions for host and ping commands

Bug #1030025 reported by Haw Loeung
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bash-completion (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Hi,

It seems that the host and ping programmable completions are no longer available in quantal?

[hloeung@darkon etc]$ complete | grep known_hosts
complete -F _known_hosts rlogin
complete -F _known_hosts ftp
complete -F _known_hosts tracepath6
complete -F _known_hosts tracepath
complete -F _known_hosts mtr
complete -F _known_hosts traceroute6
complete -F _known_hosts fping
complete -F _known_hosts ssh-installkeys
complete -F _known_hosts rsh
complete -F _known_hosts dig
complete -F _known_hosts telnet
complete -F _known_hosts showmount
complete -F _known_hosts fping6
complete -F _known_hosts traceroute
[hloeung@darkon etc]$ complete | grep known_hosts | wc -l
14

On a precise host, I get:

hloeung@hadar:~$ complete | grep known_hosts
complete -F _known_hosts rlogin
complete -F _known_hosts ftp
complete -F _known_hosts tracepath6
complete -F _known_hosts host
complete -F _known_hosts tracepath
complete -F _known_hosts ping
complete -F _known_hosts mtr
complete -F _known_hosts traceroute6
complete -F _known_hosts fping
complete -F _known_hosts ping6
complete -F _known_hosts ssh-installkeys
complete -F _known_hosts rsh
complete -F _known_hosts dig
complete -F _known_hosts telnet
complete -F _known_hosts showmount
complete -F _known_hosts fping6
complete -F _known_hosts traceroute
hloeung@hadar:~$ complete | grep known_hosts | wc -l
17

I can't seem to recall the last time host and ping used to work but I'm pretty sure it's only started recently? Any chance someone could take a look?

Thanks,

Haw

Haw Loeung (hloeung)
summary: - Missing auto completion for host and ping
+ Missing programmable bash completions for host and ping commands
Changed in bash-completion (Ubuntu):
importance: Undecided → Medium
Changed in bash-completion (Ubuntu):
importance: Medium → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bash-completion (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Cordes (peter-cordes) wrote :

In Trusty, ping is handled by _ping, so custom code just for ping. host just gets the generic _minimal.

completion for host was removed in commit bd482ca2f221323aa461ca75c9457ec11f43570e

   host, nslookup: Remove completions for bind utils from bash_completion.

   This fixes tests on systems without bind.

https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=bash-completion/bash-completion.git;a=object;h=bd482ca2f221323aa461ca75c9457ec11f43570e

(followed by a commit that reverted that, then followed by a commit that reverted the reversion, putting this commit back in.)

 Seems like a crappy reason to take out a useful completion.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.