Debian Bug report logs - #586210
loading of "service" completion fails

version graph

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: John Hedges <john@drystone.co.uk>

Date: Thu, 17 Jun 2010 12:27:01 UTC

Severity: normal

Tags: confirmed, fixed-upstream, unreproducible, upstream

Found in version bash-completion/1:1.2-1

Fixed in version bash-completion/1:1.3-1

Done: David Paleino <dapal@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 12:27:04 GMT) (full text, mbox, link).


Acknowledgement sent to John Hedges <john@drystone.co.uk>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 12:27:04 GMT) (full text, mbox, link).


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

From: John Hedges <john@drystone.co.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 12:58:51 +0100
Package: bash-completion
Version: 1:1.2-1
Severity: normal


After today's dist-upgrade bash errors on startup.
The error is caused by /etc/bash-completion.d/system which I believe is no
longer required. However, the install scripts did not remove the file.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash                          4.1-3      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 14:15:09 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 14:15:09 GMT) (full text, mbox, link).


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

From: David Paleino <dapal@debian.org>
To: John Hedges <john@drystone.co.uk>
Cc: 586210@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#586210: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 16:11:54 +0200
[Message part 1 (text/plain, inline)]
tags 586210 unreproducible
thanks

Hello,

On Thu, 17 Jun 2010 12:58:51 +0100, John Hedges wrote:

> After today's dist-upgrade bash errors on startup.
> The error is caused by /etc/bash-completion.d/system which I believe is no
> longer required. However, the install scripts did not remove the file.

That file (/etc/bash_completion.d/system, you have a typo there) is not
installed by bash-completion, AFAICT. Moreover, I can't find it in any official
Debian package, from Lenny onwards.

Maybe it's something you manually wrote? Or some unofficial package installed
it?
Can you post the output of "dpkg -S completion.d/system"?

Kindly,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]

Added tag(s) unreproducible. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Thu, 17 Jun 2010 14:15:11 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 14:45:06 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 14:45:06 GMT) (full text, mbox, link).


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

From: David Paleino <dapal@debian.org>
To: John Hedges <john@drystone.co.uk>
Cc: 586210@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#586210: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 16:42:47 +0200
[Message part 1 (text/plain, inline)]
Hello,

On Thu, 17 Jun 2010 15:32:41 +0100, John Hedges wrote:

> I'ts a really rubbish bug report - I was in too much of a hurry!  The problem
> file is /etc/bash_completion.d/service and it causes a problem on my system
> when an empty string is passed to:
>     complete -F _service -o default ""
> 
> I've attached a patch that seems to fix it (rightly or not).

Can you please attach the output of:

  $ ls -1 /etc/init.d/*

?
(that's -one)

> Sorry for the garbage!

Don't worry :)

David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 14:57:07 GMT) (full text, mbox, link).


Acknowledgement sent to John Hedges <john@drystone.co.uk>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 14:57:07 GMT) (full text, mbox, link).


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

From: John Hedges <john@drystone.co.uk>
To: David Paleino <dapal@debian.org>
Cc: 586210@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#586210: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 15:32:41 +0100
[Message part 1 (text/plain, inline)]
On Thu, Jun 17, 2010 at 04:11:54PM +0200, David Paleino wrote:
> tags 586210 unreproducible
> thanks
> 
> Hello,
> 
> On Thu, 17 Jun 2010 12:58:51 +0100, John Hedges wrote:
> 
> > After today's dist-upgrade bash errors on startup.
> > The error is caused by /etc/bash-completion.d/system which I believe is no
> > longer required. However, the install scripts did not remove the file.
> 
> That file (/etc/bash_completion.d/system, you have a typo there) is not
> installed by bash-completion, AFAICT. Moreover, I can't find it in any official
> Debian package, from Lenny onwards.
> 
> Maybe it's something you manually wrote? Or some unofficial package installed
> it?
> Can you post the output of "dpkg -S completion.d/system"?
> 
> Kindly,
> David

Hi David

I'ts a really rubbish bug report - I was in too much of a hurry!  The problem
file is /etc/bash_completion.d/service and it causes a problem on my system
when an empty string is passed to:
    complete -F _service -o default ""

I've attached a patch that seems to fix it (rightly or not).

Sorry for the garbage!

Cheers
John

[bash_completion.patch (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 15:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to John Hedges <john@drystone.co.uk>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 15:03:06 GMT) (full text, mbox, link).


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

From: John Hedges <john@drystone.co.uk>
To: David Paleino <dapal@debian.org>
Subject: Re: [Bash-completion-devel] Bug#586210: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 16:01:28 +0100
[Message part 1 (text/plain, inline)]
>   $ ls -1 /etc/init.d/*

Attached ...

[initd (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Thu, 17 Jun 2010 15:54:03 GMT) (full text, mbox, link).


Acknowledgement sent to dapal@debian.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Thu, 17 Jun 2010 15:54:03 GMT) (full text, mbox, link).


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

From: David Paleino <dapal@debian.org>
To: John Hedges <john@drystone.co.uk>
Cc: 586210@bugs.debian.org
Subject: Re: [Bash-completion-devel] Bug#586210: bash-completion: upgrade leaves /etc/bash_completion.d/system
Date: Thu, 17 Jun 2010 17:49:54 +0200
[Message part 1 (text/plain, inline)]
tags 586210 upstream fixed-upstream
retitle 586210 loading of "service" completion fails
thanks

Hello John,

On Thu, 17 Jun 2010 15:32:41 +0100, John Hedges wrote:

> I'ts a really rubbish bug report - I was in too much of a hurry!  The problem
> file is /etc/bash_completion.d/service and it causes a problem on my system
> when an empty string is passed to:
>     complete -F _service -o default ""
> 
> I've attached a patch that seems to fix it (rightly or not).

I slightly modified it, to make it more compact ([ -n "$services" ] instead of
the if..fi), and I've already applied it upstream.

The error you reported should only occur if every file in /etc/init.d/ has a
proper completion (that's the meaning of "complete -p ${i##*/} || printf
[..]"). This seems unlikely to happen again, but better be safe than sorry.
I can't say why it happened in your case.

I fixed it upstream, will make a Debian patch (with a package upload) ASAP (I
want to fix the RC-bug with -2).

Thank you for your contribution!
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
[signature.asc (application/pgp-signature, attachment)]

Added tag(s) upstream and fixed-upstream. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Thu, 17 Jun 2010 15:54:05 GMT) (full text, mbox, link).


Changed Bug title to 'loading of "service" completion fails' from 'bash-completion: upgrade leaves /etc/bash_completion.d/system' Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Thu, 17 Jun 2010 15:54:06 GMT) (full text, mbox, link).


Added tag(s) confirmed and pending. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Thu, 17 Jun 2010 16:00:02 GMT) (full text, mbox, link).


Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Sun, 20 Jun 2010 09:33:06 GMT) (full text, mbox, link).


Notification sent to John Hedges <john@drystone.co.uk>:
Bug acknowledged by developer. (Sun, 20 Jun 2010 09:33:06 GMT) (full text, mbox, link).


Message #43 received at 586210-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 586210-close@bugs.debian.org
Subject: Bug#586210: fixed in bash-completion 1:1.2-2
Date: Sun, 20 Jun 2010 09:32:15 +0000
Source: bash-completion
Source-Version: 1:1.2-2

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:

bash-completion_1.2-2.debian.tar.gz
  to main/b/bash-completion/bash-completion_1.2-2.debian.tar.gz
bash-completion_1.2-2.dsc
  to main/b/bash-completion/bash-completion_1.2-2.dsc
bash-completion_1.2-2_all.deb
  to main/b/bash-completion/bash-completion_1.2-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 586210@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 20 Jun 2010 09:57:35 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:1.2-2
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 586161 586210
Changes: 
 bash-completion (1:1.2-2) unstable; urgency=low
 .
   * debian/patches/:
     - 00-fix_586210.patch added, fixes a weird error while loading
       service(8) completions. Thanks to John Hedges (Closes: #586210)
   * debian/control:
     - added Replaces: cryptsetup (Closes: #586161)
Checksums-Sha1: 
 0f3d2f10324350262568cc1259317e1952e7473b 1317 bash-completion_1.2-2.dsc
 b5cf0e79831415c116cc1527fc7ad677aa0083b8 19522 bash-completion_1.2-2.debian.tar.gz
 3fe6ab93c1c61386a54f0995fe25e282e0a46ec2 138534 bash-completion_1.2-2_all.deb
Checksums-Sha256: 
 740225e11f1bae2fbe2bbd355d9265bd1769fb8cc000c7779d8283fe500ccbec 1317 bash-completion_1.2-2.dsc
 8e18ecb71998bf4e8af8d2b531f40a5797c757ec3b034aee0dc76e3d66adc6ea 19522 bash-completion_1.2-2.debian.tar.gz
 a6a09515fd68c6ec73d00c7d17fcea0e16ed78ce08c8de5d540f38cd93d253ce 138534 bash-completion_1.2-2_all.deb
Files: 
 100c2aff151d703ccbba94e75e69021e 1317 shells standard bash-completion_1.2-2.dsc
 3764349c6d23ddc91bdc80808059d8aa 19522 shells standard bash-completion_1.2-2.debian.tar.gz
 9240cf94624ec4cea93cdca003135738 138534 shells standard bash-completion_1.2-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwdytoACgkQ5qqQFxOSsXSYHQCeK1JJsxQ1mD5tpM1lHEO6LUxt
6EcAn35P9+Z7E5tCtc5M8kTLEvkLAFA2
=f6tt
-----END PGP SIGNATURE-----





Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#586210; Package bash-completion. (Mon, 21 Jun 2010 01:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to YAMASHITA Junji <ysiijj@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (Mon, 21 Jun 2010 01:27:03 GMT) (full text, mbox, link).


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

From: YAMASHITA Junji <ysiijj@gmail.com>
To: 586210@bugs.debian.org
Subject: Re: Bug#586210: loading of "service" completion fails
Date: Mon, 21 Jun 2010 09:47:10 +0900
[Message part 1 (text/plain, inline)]
The #22 patch has no sense because `complete' is in sub-shell.

It has no effect in parent-shell.

Regards
-- 
YAMASHITA Junji mailto:ysiijj@gmail.com
[service.patch (application/octet-stream, attachment)]

Bug No longer marked as fixed in versions bash-completion/1:1.2-2 and reopened. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 25 Jun 2010 17:51:03 GMT) (full text, mbox, link).


Added tag(s) pending. Request was from David Paleino <dapal@debian.org> to control@bugs.debian.org. (Sun, 06 Feb 2011 20:57:03 GMT) (full text, mbox, link).


Reply sent to David Paleino <dapal@debian.org>:
You have taken responsibility. (Mon, 07 Feb 2011 01:21:03 GMT) (full text, mbox, link).


Notification sent to John Hedges <john@drystone.co.uk>:
Bug acknowledged by developer. (Mon, 07 Feb 2011 01:21:03 GMT) (full text, mbox, link).


Message #57 received at 586210-close@bugs.debian.org (full text, mbox, reply):

From: David Paleino <dapal@debian.org>
To: 586210-close@bugs.debian.org
Subject: Bug#586210: fixed in bash-completion 1:1.3-1
Date: Mon, 07 Feb 2011 01:19:29 +0000
Source: bash-completion
Source-Version: 1:1.3-1

We believe that the bug you reported is fixed in the latest version of
bash-completion, which is due to be installed in the Debian FTP archive:

bash-completion_1.3-1.debian.tar.gz
  to main/b/bash-completion/bash-completion_1.3-1.debian.tar.gz
bash-completion_1.3-1.dsc
  to main/b/bash-completion/bash-completion_1.3-1.dsc
bash-completion_1.3-1_all.deb
  to main/b/bash-completion/bash-completion_1.3-1_all.deb
bash-completion_1.3.orig.tar.bz2
  to main/b/bash-completion/bash-completion_1.3.orig.tar.bz2



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 586210@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
David Paleino <dapal@debian.org> (supplier of updated bash-completion package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sun, 06 Feb 2011 22:00:58 +0100
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 1:1.3-1
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>
Changed-By: David Paleino <dapal@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 586210 587095 588079 600617 609552
Changes: 
 bash-completion (1:1.3-1) unstable; urgency=low
 .
   * New upstream release
     - Fixed "service" completion, thanks to John Hedges (Closes: #586210)
     - Fixed typo in openssl completion (Closes: #609552)
     - Added ip completion (Closes: #600617)
     - Added _tilde(), fix ~username completion (Closes: #587095)
     - Add *.webm to mplayer file completions (Closes: #588079).
   * debian/watch: fix to handle .tar.bz2 files
   * Bump Standards-Version to 3.9.1, no changes needed
   * Install upstream CHANGES file
   * Update copyright years in debian/copyright
   * debian/rules: reflect new source layout
Checksums-Sha1: 
 eb902b8d2eb41b2a2cf364dfa0dc73700f9b4951 1320 bash-completion_1.3-1.dsc
 6a46b93f44c56cc336632ab28d90c0595fbcc98f 211899 bash-completion_1.3.orig.tar.bz2
 a8099b940ab1a9873a7bc81bcf8614ced7bfc8a1 11401 bash-completion_1.3-1.debian.tar.gz
 a36df309aa7129ba79375d2bc8f24b8696e00677 150748 bash-completion_1.3-1_all.deb
Checksums-Sha256: 
 2c0bb71cab5f794087de8674c75fb59c96cb24662093c97aafbba13fd913b182 1320 bash-completion_1.3-1.dsc
 8ebe30579f0f3e1a521013bcdd183193605dab353d7a244ff2582fb3a36f7bec 211899 bash-completion_1.3.orig.tar.bz2
 d51e595201dbe96b3058665855a57745be514797c39e29221df3ccc15ca99329 11401 bash-completion_1.3-1.debian.tar.gz
 896d1f718608e6fc36f54c1b42bca32fc2fb0d26f7072e910893db0ac278151f 150748 bash-completion_1.3-1_all.deb
Files: 
 acd98f7e77ec61bbdbfbc12b6d495116 1320 shells standard bash-completion_1.3-1.dsc
 a1262659b4bbf44dc9e59d034de505ec 211899 shells standard bash-completion_1.3.orig.tar.bz2
 9cec6f4ffdd8f5d4754684dfb9321f87 11401 shells standard bash-completion_1.3-1.debian.tar.gz
 0f7fd2cb17a71e99acc0ecb0acd44c8c 150748 shells standard bash-completion_1.3-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk1PDPIACgkQ5qqQFxOSsXSuYwCgq0aXCwws6g7XJ+k5tU8e8Kok
xkIAoKkR8YFhsJNPzn/sMZZ3Lh+PCpWy
=Dn1U
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 18 Mar 2011 07:31:21 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 05:50:49 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.