Debian Bug report logs - #474974
bash-completion: apt-get autoremove should behave like apt-get remove.

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: Flavio Visentin <flavio+bugreport@zipman.it>

Date: Tue, 8 Apr 2008 09:27:10 UTC

Severity: normal

Tags: confirmed, patch

Found in version bash-completion/20060301-4

Fixed in version bash-completion/20080617

Done: Luk Claes <luk@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, Luk Claes <luk@debian.org>:
Bug#474974; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Flavio Visentin <flavio+bugreport@zipman.it>:
New Bug report received and forwarded. Copy sent to Luk Claes <luk@debian.org>. (full text, mbox, link).


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

From: Flavio Visentin <flavio+bugreport@zipman.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: apt-get autoremove should behave like apt-get remove.
Date: Tue, 08 Apr 2008 11:24:02 +0200
Package: bash-completion
Version: 20060301-4
Severity: normal
Tags: patch


apt-get autoremove must complete exactly like apt-get remove, comleting with the list of installed packages 

--- /etc/bash_completion.old    2008-04-08 11:16:22.000000000 +0200
+++ /etc/bash_completion        2008-04-08 11:16:26.000000000 +0200
@@ -2066,14 +2066,14 @@
 	prev=${COMP_WORDS[COMP_CWORD-1]}
 
 	for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
-		if [[ ${COMP_WORDS[i]} == @(install|remove|purge|source|build-dep) ]]; then
+		if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep) ]]; then
 			special=${COMP_WORDS[i]}
 		fi
 	done
 
 	if [ -n "$special" ]; then
 		case $special in
-		remove|purge)
+		remove|autoremove|purge)
 			if [ -f /etc/debian_version ]; then
 				# Debian system
 				COMPREPLY=( $( _comp_dpkg_installed_packages \


-- System Information:
Debian Release: lenny/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          3.1dfsg-9  The GNU Bourne Again SHell
ii  ucf                           3.006      Update Configuration File: preserv

bash-completion recommends no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Luk Claes <luk@debian.org>:
Bug#474974; Package bash-completion. (full text, mbox, link).


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

From: Robert Millan <rmh@aybabtu.com>
To: Flavio Visentin <flavio+bugreport@zipman.it>
Cc: 474974@bugs.debian.org
Subject: Re: bash-completion: apt-get autoremove should behave like apt-get remove.
Date: Thu, 17 Apr 2008 15:31:02 +0200
[Message part 1 (text/plain, inline)]
On Tue, Apr 08, 2008 at 11:24:02AM +0200, Flavio Visentin wrote:
> Package: bash-completion
> Version: 20060301-4
> Severity: normal
> Tags: patch
> 
> 
> apt-get autoremove must complete exactly like apt-get remove, comleting with the list of installed packages 
> 
> --- /etc/bash_completion.old    2008-04-08 11:16:22.000000000 +0200
> +++ /etc/bash_completion        2008-04-08 11:16:26.000000000 +0200
> @@ -2066,14 +2066,14 @@
>  	prev=${COMP_WORDS[COMP_CWORD-1]}
>  
>  	for (( i=0; i < ${#COMP_WORDS[@]}-1; i++ )); do
> -		if [[ ${COMP_WORDS[i]} == @(install|remove|purge|source|build-dep) ]]; then
> +		if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep) ]]; then
>  			special=${COMP_WORDS[i]}
>  		fi
>  	done
>  
>  	if [ -n "$special" ]; then
>  		case $special in
> -		remove|purge)
> +		remove|autoremove|purge)
>  			if [ -f /etc/debian_version ]; then
>  				# Debian system
>  				COMPREPLY=( $( _comp_dpkg_installed_packages \

You forgot about completing "autoremove" itself (see attached patch).

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)
[autoremove.diff (text/x-diff, attachment)]

Tags added: confirmed, pending Request was from David Paleino <d.paleino@gmail.com> to control@bugs.debian.org. (Sun, 11 May 2008 15:45:18 GMT) (full text, mbox, link).


Reply sent to Luk Claes <luk@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Flavio Visentin <flavio+bugreport@zipman.it>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Luk Claes <luk@debian.org>
To: 474974-close@bugs.debian.org
Subject: Bug#474974: fixed in bash-completion 20080617
Date: Sat, 21 Jun 2008 21:02:04 +0000
Source: bash-completion
Source-Version: 20080617

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_20080617.dsc
  to pool/main/b/bash-completion/bash-completion_20080617.dsc
bash-completion_20080617.tar.gz
  to pool/main/b/bash-completion/bash-completion_20080617.tar.gz
bash-completion_20080617_all.deb
  to pool/main/b/bash-completion/bash-completion_20080617_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 474974@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luk Claes <luk@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: Sat, 21 Jun 2008 21:59:43 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 20080617
Distribution: unstable
Urgency: low
Maintainer: Bash Completion Maintainers <bash-completion-devel@lists.debian.org>
Changed-By: Luk Claes <luk@debian.org>
Description: 
 bash-completion - programmable completion for the bash shell
Closes: 347316 365658 376433 394636 404976 409423 416655 424736 428641 432289 441017 455510 468254 470539 470742 472132 472940 474094 474517 474974 475242 478596 480879
Changes: 
 bash-completion (20080617) unstable; urgency=low
 .
   [ David Paleino ]
   * New upstream release
     - add more completions to aptitude (Closes: #432289)
     - fixed UTF-8 problem with _get_cword(), thanks to
       Andrei Paskevich (Closes: #472132)
     - fixed autoremove completion, thanks to Flavio Visentin
       (Closes: #474974)
     - cmf and CMF added to playmidi completion (Closes: #365658)
     - added rrdtool completion, thanks to Justin Pryzby (Closes: #428641)
     - added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t})
       (Closes: #472940)
     - fixed escaping problems with job control (i.e. disown, jobs, bg,
       fg): the argument is now surrounded by "" (Closes: #347316)
     - make mkdir complete also on filenames (Closes: #376433)
     - {bz,z}{cat,cmp,diff,egrep,fgrep,grep,less,more} now should complete
       on all filenames, not just compressed archives (just commented out)
       (Closes: #455510)
     - fixes Perl completion (Closes: #470742)
     - fixes get_cword -> _get_cword typo (Closes: #478596)
     - fixes _get_cword() function to properly handle filenames with
       whitespaces (Closes: #394636, #468254, #474094)
     - added .pdf.bz2 completion to evince (Closes: #424736)
     - added .svg completion to display (Closes: #441017)
     - added .m2ts completion to mplayer (Closes: #480879)
     - added extra/dh_bash-completion to ease future rewrite of bc.
   * debian/copyright - now in a fancier machine-parsable format.
   * debian/control:
     - added myself to Uploaders
     - debhelper Build-Depends updated to >= 6.
   * debian/watch:
     - improved current watch line regex
     - added (commented out) probable future watch line
   * debian/compat bumped to 6
   * debian/dirs, debian/install and debian/links added
   * debian/rules:
     - refactored to make use of debian/{dirs,install,links}
 .
   [ Steve Kemp ]
   * Applied patch to fix completion of umount command.
     (Closes: #470539)
   * Fixed the completion of Perl manpages.
     (Closes: #404976)
   * Added 'aif' to the filenames offed for completion for mplayer.
     (Closes: #474517)
   * Allow tsocks completion.
     (Closes: #409423)
   * Update mutt completion to handle local usernames.
     (Closes: #416655)
   * Update apt-get completion to include the flag "--no-install-recommends"
     (Closes: #475242)
Checksums-Sha1: 
 a267866b73de860449ddbc4374faa0b27cb14652 854 bash-completion_20080617.dsc
 d0fc2f36ee0d896f98c1e5dfd49e8623bb936aaa 97143 bash-completion_20080617.tar.gz
 91dc4ad723ecbff302047187e65f6aefedf5ebbf 83372 bash-completion_20080617_all.deb
Checksums-Sha256: 
 9aa0ed60aa9fc88fcc3a542a0d296ead12c23dbae025d158ff414267b22c960b 854 bash-completion_20080617.dsc
 57cd6ee1abc39182183eebeeb1378bdd2438363bf766d69dcabd0320378b6b22 97143 bash-completion_20080617.tar.gz
 e88bd724c2e44629c27fe0346369fe450f0cae12f846ae08fc3794b7dcb1ae32 83372 bash-completion_20080617_all.deb
Files: 
 058c2c5c7a2da8c58f3fbf4f117caf26 854 shells standard bash-completion_20080617.dsc
 902c045bb9fce960571f44200b476cec 97143 shells standard bash-completion_20080617.tar.gz
 7997031028650ef5f5ae30bf1ba5488f 83372 shells standard bash-completion_20080617_all.deb

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

iEYEARECAAYFAkhdZpQACgkQ5UTeB5t8Mo2n+ACcC7WR8B82ilcQ7iB69fQ/SLQ7
BAwAn3aAUrB08bRSg5QD3/wF9qdPGtC0
=CoOt
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 21 Jul 2008 07:33:45 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:25:33 2023; Machine Name: bembo

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.