[Pkg-sysvinit-devel] Bug#707007: Bug#707007: wishlist: bash_completion for /bin/service

Steve Langasek vorlon at debian.org
Thu May 16 03:20:46 UTC 2013


Control: reassign -1 bash-completion

> It would be nice if "service <tab><tab><tab>" would show all acceptable
> names so that one doesn't have to remember if it was e.g.  "mysql" or
> "mysql-server".  I guess it's pretty easily done with bash_completion but
> I have no clue how such scripts are made.

There is already support for this in the core
/usr/share/bash-completion/bash_completion script.  And it works for me.

> Note that service(8) also supports upstart and systemd, so you have to
> take care of that when designing a completion function.

That's a good point; the current bash_completion only handles sysvinit
scripts.  Maybe it should be extended?  (But I'm not sure if that's on topic
for this bug report, or if a separate one should be filed.)

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20130515/f1bf8546/attachment.pgp>


More information about the Pkg-sysvinit-devel mailing list