Debian Bug report logs - #487449
bash-completion: Wrong directory name completion

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: "Nelson A. de Oliveira" <naoliv@debian.org>

Date: Sat, 21 Jun 2008 22:48:01 UTC

Severity: grave

Tags: confirmed, patch

Merged with 487544

Found in version bash-completion/20080617.1

Fixed in version bash-completion/20080617.2

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


Acknowledgement sent to "Nelson A. de Oliveira" <naoliv@debian.org>:
New Bug report received and forwarded. Copy sent to naoliv@debian.org, Luk Claes <luk@debian.org>. (full text, mbox, link).


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

From: "Nelson A. de Oliveira" <naoliv@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: Wrong directory name completion
Date: Sat, 21 Jun 2008 19:45:08 -0300
Package: bash-completion
Version: 20080617.1
Severity: normal

Hi again!

Sorry for being so annoying, but there is another problem (that wasn't
happening before). See:

$ cd /t
     tmp/

It's displaying this "empty" dir, instead directly completing "/tmp"

It happens everywhere:

$ cd /b
      bin/  boot/ 
$ cd /bi
     bin/

Thank you very much!

Best regards,
Nelson

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

Kernel: Linux 2.6.25-naoliv1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash-completion depends on:
ii  bash                          3.2-4      The GNU Bourne Again SHell
ii  ucf                           3.007      Update Configuration File: preserv

bash-completion recommends no packages.

-- no debconf information




Tags added: confirmed Request was from David Paleino <d.paleino@gmail.com> to control@bugs.debian.org. (Sat, 21 Jun 2008 23:00:02 GMT) (full text, mbox, link).


Information stored:
Bug#487449; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to David Paleino <d.paleino@gmail.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


Message #12 received at 487449-quiet@bugs.debian.org (full text, mbox, reply):

From: David Paleino <d.paleino@gmail.com>
To: "Nelson A. de Oliveira" <naoliv@debian.org>, 487449-quiet@bugs.debian.org
Subject: Re: Bug#487449: bash-completion: Wrong directory name completion
Date: Sun, 22 Jun 2008 01:04:49 +0200
[Message part 1 (text/plain, inline)]
On Sat, 21 Jun 2008 19:45:08 -0300, Nelson A. de Oliveira wrote:

> Package: bash-completion
> Version: 20080617.1
> Severity: normal
> 
> Hi again!

Hello,

> Sorry for being so annoying, but there is another problem (that wasn't
> happening before).

:/

> See:
> 
> $ cd /t
>      tmp/
> 
> It's displaying this "empty" dir, instead directly completing "/tmp"

:s

> It happens everywhere:
> 
> $ cd /b
>       bin/  boot/ 
> $ cd /bi
>      bin/

:@

I'll work on it tomorrow I hope -- it's too late now... (01.00 AM here ;) )

In the meanwhile, while you have nothing to do, you could try to see what's
happening :P

No, seriously. I found the bug, but it makes others:

$ cd /t<TAB>
$ cd /tmp/
$ touch "foo with space"
$ ls fo<TAB>
         foo with space
$ ls fo\ <TAB>
$ ls fo\\\ 

I'm very sorry for all this mess. :(
I'll look at it tomorrow, if I can.

Kindly,
David

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

Information stored:
Bug#487449; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to David Paleino <d.paleino@gmail.com>:
Extra info received and filed, but not forwarded. (full text, mbox, link).


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

From: David Paleino <d.paleino@gmail.com>
To: 487449-quiet@bugs.debian.org
Subject: Fw: Bug#487449: bash-completion: Wrong directory name completion
Date: Sun, 22 Jun 2008 01:09:28 +0200
[Message part 1 (text/plain, inline)]
Forwarding my reply to Nelson -- I had mistaken the BTS address....

Inizio messsaggio inviato:

Data: Sun, 22 Jun 2008 01:07:44 +0200
Da: David Paleino <d.paleino@gmail.com>
A: "Nelson A. de Oliveira" <naoliv@debian.org>, 487449.quiet@bugs.debian.org
Oggetto: Re: Bug#487449: bash-completion: Wrong directory name completion


On Sat, 21 Jun 2008 19:45:08 -0300, Nelson A. de Oliveira wrote:

> Package: bash-completion
> Version: 20080617.1
> Severity: normal
> 
> Hi again!

Since I won't sleep if you (or anyone else) are unable to use bash-completion
because of my lazy testing, here's a quick patch I believe fixes the problem
(r1121):

=== modified file 'bash_completion'
--- bash_completion	2008-06-21 22:51:09 +0000
+++ bash_completion	2008-06-21 23:05:48 +0000
@@ -241,13 +241,13 @@
 	#set -f		 # disable pathname expansion (globbing)
 
 	if [ "${1:-}" = -d ]; then
-		COMPREPLY=( "${COMPREPLY[@]:-}" $( compgen -d -- $cur ) )
+		COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -d -- $cur ) )
 		#eval "$glob"    # restore glob setting.
 		return 0
 	fi
 
 	xspec=${1:+"!*.$1"}	# set only if glob passed in as $1
-	COMPREPLY=( "${COMPREPLY[@]:-}" $( compgen -f -X "$xspec" -- "$cur" ) \
+	COMPREPLY=( ${COMPREPLY[@]:-} $( compgen -f -X "$xspec" -- "$cur" ) \
 		    $( compgen -d -- "$cur" ) )
 	#eval "$glob"    # restore glob setting.
 }

Goodnight,
David (who is going to sleep... seriously.)

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

Forcibly Merged 487449 487544. Request was from David Paleino <d.paleino@gmail.com> to control@bugs.debian.org. (Sun, 22 Jun 2008 15:18:03 GMT) (full text, mbox, link).


Tags added: patch Request was from David Paleino <d.paleino@gmail.com> to control@bugs.debian.org. (Sun, 22 Jun 2008 15:18:04 GMT) (full text, mbox, link).


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


Notification sent to "Nelson A. de Oliveira" <naoliv@debian.org>:
Bug acknowledged by developer. (full text, mbox, link).


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

From: Luk Claes <luk@debian.org>
To: 487449-close@bugs.debian.org
Subject: Bug#487449: fixed in bash-completion 20080617.2
Date: Sun, 22 Jun 2008 18:17:03 +0000
Source: bash-completion
Source-Version: 20080617.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_20080617.2.dsc
  to pool/main/b/bash-completion/bash-completion_20080617.2.dsc
bash-completion_20080617.2.tar.gz
  to pool/main/b/bash-completion/bash-completion_20080617.2.tar.gz
bash-completion_20080617.2_all.deb
  to pool/main/b/bash-completion/bash-completion_20080617.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 487449@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: Sun, 22 Jun 2008 19:47:23 +0200
Source: bash-completion
Binary: bash-completion
Architecture: source all
Version: 20080617.2
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: 487449
Changes: 
 bash-completion (20080617.2) unstable; urgency=low
 .
   [ David Paleino ]
   * New upstream release
     - provide a manpage for extra/dh_bash-completion
     - fix semi-serious problem with _filedir() (Closes: #487449)
   * debian/rules:
     - added rule to generate dh_bash-completion's manpage
   * debian/install, debian/dirs:
     - installing dh_bash-completion into /usr/bin
   * debian/control:
     - new package dh-bash-completion
 .
   [ Luk Claes ]
   * Comment new package to make sure current fix gets in the archive first.
   * Add compression completion for vi(m).
Checksums-Sha1: 
 84c629d54c266663a76175b845533135d65f3df6 862 bash-completion_20080617.2.dsc
 58d6abec0df26d79384d6bbdc34566ffce3c8b64 99594 bash-completion_20080617.2.tar.gz
 7c246a80546bd73533dad5b8e9fb9bbf7baa1dbb 83660 bash-completion_20080617.2_all.deb
Checksums-Sha256: 
 ac6078a305881afbbebad1a30988e02ebe4cc10cf4a1f90aed82e2e6f146a601 862 bash-completion_20080617.2.dsc
 43aaed5c937d8c554ee6b84d0bc8e9837b186073eba2ce5f13476d6daf60245a 99594 bash-completion_20080617.2.tar.gz
 3d9fd359e610cf92d6bafa7c99d96a98668237ebb0095d0bcd324ff20c76ffb6 83660 bash-completion_20080617.2_all.deb
Files: 
 61f71e3342d172f1b2caf4fdf816eff9 862 shells standard bash-completion_20080617.2.dsc
 1bfd6070583127e449e36759a86201e7 99594 shells standard bash-completion_20080617.2.tar.gz
 c4b97adf0e29eac3e6fe76a621a31661 83660 shells standard bash-completion_20080617.2_all.deb

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

iEYEARECAAYFAkhek2EACgkQ5UTeB5t8Mo0iNACdG6KNbN5RJ+QgBo3zT8y42ib1
kiQAn0E13Waz9FOKuyfZU4seKCv9HFh5
=ncYC
-----END PGP SIGNATURE-----





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


Notification sent to Norbert Preining <preining@logic.at>:
Bug acknowledged by developer. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.debian.org>:
Bug#487449; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to "Hongzheng Wang" <wanghz@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.debian.org>. (full text, mbox, link).


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

From: "Hongzheng Wang" <wanghz@gmail.com>
To: 487449@bugs.debian.org
Subject: Still buggy
Date: Mon, 23 Jun 2008 16:32:11 +0800
Hi,

It seems that the bug is not fixed completely.  For example, suppose
you type `vi /et', then press tab, it reports:
$ vi /etsed: can't read /e: No such file or directory
sed: can't read c/bash_comple: No such file or directory
sed: can't read io: No such file or directory

But not all commands fail to work.  Say, type `nvi /et' and press tab,
completion works well.

-- 
HZ




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.debian.org>:
Bug#487449; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to "Hongzheng Wang" <wanghz@gmail.com>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.debian.org>. (full text, mbox, link).


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

From: "Hongzheng Wang" <wanghz@gmail.com>
To: 487449@bugs.debian.org
Subject: Re: Still buggy
Date: Mon, 23 Jun 2008 21:55:00 +0800
Hi,

It's fixed in 20080617.3.  Thanks.

-- 
HZ




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 22 Jul 2008 07:32:31 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:26:03 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.