Debian Bug report logs - #707007
wishlist: bash_completion for /bin/service

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Christian Hammers <ch@lathspell.de>

Date: Mon, 6 May 2013 19:54:06 UTC

Severity: wishlist

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#707007; Package sysvinit-utils. (Mon, 06 May 2013 19:54:11 GMT) (full text, mbox, link).


Acknowledgement sent to Christian Hammers <ch@lathspell.de>:
New Bug report received and forwarded. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Mon, 06 May 2013 19:54:11 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Christian Hammers <ch@lathspell.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: wishlist: bash_completion for /bin/service
Date: Mon, 06 May 2013 21:42:54 +0200
Package: sysvinit-utils
Version: 2.88dsf-41
Severity: wishlist

Hello

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.

bye,

-christian-


-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages sysvinit-utils depends on:
ii  libc6        2.13-38
ii  libselinux1  2.1.9-5

sysvinit-utils recommends no packages.

Versions of packages sysvinit-utils suggests:
pn  bootlogd  <none>
pn  sash      <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#707007; Package sysvinit-utils. (Mon, 06 May 2013 21:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Stapelberg <stapelberg@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Mon, 06 May 2013 21:27:04 GMT) (full text, mbox, link).


Message #10 received at 707007@bugs.debian.org (full text, mbox, reply):

From: Michael Stapelberg <stapelberg@debian.org>
To: Christian Hammers <ch@lathspell.de>, 707007@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#707007: wishlist: bash_completion for /bin/service
Date: Mon, 06 May 2013 23:23:38 +0200
Hi Christian,

Christian Hammers <ch@lathspell.de> writes:
> 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.
Note that service(8) also supports upstart and systemd, so you have to
take care of that when designing a completion function.

-- 
Best regards,
Michael



Information forwarded to debian-bugs-dist@lists.debian.org, Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>:
Bug#707007; Package sysvinit-utils. (Thu, 16 May 2013 03:24:04 GMT) (full text, mbox, link).


Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian sysvinit maintainers <pkg-sysvinit-devel@lists.alioth.debian.org>. (Thu, 16 May 2013 03:24:04 GMT) (full text, mbox, link).


Message #15 received at 707007@bugs.debian.org (full text, mbox, reply):

From: Steve Langasek <vorlon@debian.org>
To: 707007@bugs.debian.org
Subject: Re: [Pkg-sysvinit-devel] Bug#707007: wishlist: bash_completion for /bin/service
Date: Wed, 15 May 2013 22:20:46 -0500
[Message part 1 (text/plain, inline)]
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@ubuntu.com                                     vorlon@debian.org
[signature.asc (application/pgp-signature, inline)]

Bug reassigned from package 'sysvinit-utils' to 'bash-completion'. Request was from Steve Langasek <vorlon@debian.org> to 707007-submit@bugs.debian.org. (Thu, 16 May 2013 03:24:04 GMT) (full text, mbox, link).


No longer marked as found in versions sysvinit/2.88dsf-41. Request was from Steve Langasek <vorlon@debian.org> to 707007-submit@bugs.debian.org. (Thu, 16 May 2013 03:24:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:18:51 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.