[Bug 1188897] Re: Completion for "service" only looks up /etc/init.d/
Peter Cordes
peter at cordes.ca
Sun Nov 30 13:46:50 UTC 2014
adding
COMPREPLY+=( $( initctl list 2>/dev/null | cut -d' ' -f1 ) )
to _services() does the trick.
submitted upstream
https://alioth.debian.org/tracker/index.php?func=detail&aid=314897&group_id=100114&atid=413095
** Bug watch added: alioth.debian.org/ #314897
http://alioth.debian.org/support/tracker.php?aid=314897
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/1188897
Title:
Completion for "service" only looks up /etc/init.d/
Status in bash-completion package in Ubuntu:
Confirmed
Bug description:
sudo service net TAB gives me "sudo service networking", i.e., no
other candidates.
But at least sudo service network-manager restart is also valid and it
is useful to workaround some NM bug.
$ ll /etc/init.d/net*
-rwxr-xr-x 1 root root 4322 May 18 13:37 /etc/init.d/networking*
$ ll /etc/init/net*
-rw-r--r-- 1 root root 2078 Dec 12 05:03 /etc/init/networking.conf
-rw-r--r-- 1 root root 803 Dec 12 05:03 /etc/init/network-interface.conf
-rw-r--r-- 1 root root 523 Dec 12 05:03 /etc/init/network-interface-container.conf
-rw-r--r-- 1 root root 1756 Dec 12 05:06 /etc/init/network-interface-security.conf
-rw-r--r-- 1 root root 568 Jan 22 07:59 /etc/init/network-manager.conf
I guess we should look up /etc/init/ also.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1188897/+subscriptions
More information about the foundations-bugs
mailing list