Debian Bug report logs - #543982
bash: Completion with spaces broken.

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: Philipp Weis <pweis@pweis.com>

Date: Thu, 27 Aug 2009 21:48:02 UTC

Severity: important

Tags: confirmed, fixed-upstream

Merged with 544024, 544956, 547349, 548454, 549284, 549548, 550186, 556224

Found in version bash-completion/1:1.0-3

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

Done: David Paleino <d.paleino@gmail.com>

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, Matthias Klose <doko@debian.org>:
Bug#543982; Package bash. (Thu, 27 Aug 2009 21:48:07 GMT) (full text, mbox, link).


Acknowledgement sent to Philipp Weis <pweis@pweis.com>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (Thu, 27 Aug 2009 21:48:07 GMT) (full text, mbox, link).


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

From: Philipp Weis <pweis@pweis.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: Completion with spaces broken.
Date: Thu, 27 Aug 2009 17:41:39 -0400
[Message part 1 (text/plain, inline)]
Package: bash
Version: 4.0-4
Severity: normal

Hi,

with the latest update of bash, command completion is doesn't work
anymore on my system with filenames that contain spaces.

For example, if I have a file names "aaa bbb" and I type

  "ls a<TAB>"

it autocompletes to

  "ls aaa\ "

but not beyond the space in the string. If I hit TAB again, nothing
happens.

This worked just fine with bash 3.2-6.

Philipp


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

Kernel: Linux 2.6.30 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                5.0.0          Debian base system miscellaneous f
ii  debianutils               3.2.1          Miscellaneous utilities specific t
ii  libc6                     2.9-25         GNU C Library: Shared libraries
ii  libncurses5               5.7+20090803-2 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               1:1.0-3    programmable completion for the ba

Versions of packages bash suggests:
ii  bash-doc                      4.0-4      Documentation and examples for the

-- no debconf information

[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, espeoneefi@eep.dnsalias.org, Matthias Klose <doko@debian.org>:
Bug#543982; Package bash. (Sat, 29 Aug 2009 22:48:06 GMT) (full text, mbox, link).


Acknowledgement sent to EspeonEefi <espeoneefi@eep.dnsalias.org>:
Extra info received and forwarded to list. Copy sent to espeoneefi@eep.dnsalias.org, Matthias Klose <doko@debian.org>. (Sat, 29 Aug 2009 22:48:06 GMT) (full text, mbox, link).


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

From: EspeonEefi <espeoneefi@eep.dnsalias.org>
To: Debian Bug Tracking System <543982@bugs.debian.org>
Subject: Re: Completion with spaces broken.
Date: Sat, 29 Aug 2009 18:38:33 -0400
Package: bash
Severity: normal

Perhaps this is related to bug #544024 [1] against bash-completion?

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544024

When I removed the sourcing of /etc/bash_completion from my ~/.bashrc,
completion of filenames with spaces worked again. I don't know whether
it's bash's or bash-completion's fault that the combination of the
current versions of both leads to broken completion of filenames that
need backslashes to escape special characters.

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

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages bash depends on:
ii  base-files                5.0.0          Debian base system miscellaneous f
ii  debianutils               3.2.1          Miscellaneous utilities specific t
ii  libc6                     2.9-25         GNU C Library: Shared libraries
ii  libncurses5               5.7+20090803-2 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               1:1.0-3    programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information




Merged 543982 544956. Request was from Josh Triplett <josh@joshtriplett.org> to control@bugs.debian.org. (Sun, 06 Sep 2009 23:18:03 GMT) (full text, mbox, link).


Merged 543982 544956 548454. Request was from Tomas Janousek <tomi@nomi.cz> to control@bugs.debian.org. (Sat, 26 Sep 2009 15:06:13 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#543982; Package bash. (Sun, 04 Oct 2009 09:33:04 GMT) (full text, mbox, link).


Acknowledgement sent to Chow Loong Jin <hyperair@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 04 Oct 2009 09:33:04 GMT) (full text, mbox, link).


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

From: Chow Loong Jin <hyperair@gmail.com>
To: 543982@bugs.debian.org, control@bugs.debian.org
Subject: Patch which fixes this issue
Date: Sun, 04 Oct 2009 17:13:18 +0800
[Message part 1 (text/plain, inline)]
tag 543982 +patch
thanks

Here's a patch which appears to fix the issue for me, running Bash 4.0-5ubuntu2.
I haven't tested it with older versions of Bash though. Please use it as you
wish, and make further changes if necessary.

-- 
Kind regards,
Chow Loong Jin
[0001-Remove-all-quote_readline-usages.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, attachment)]

Added tag(s) patch. Request was from Chow Loong Jin <hyperair@gmail.com> to control@bugs.debian.org. (Sun, 04 Oct 2009 09:33:10 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#543982; Package bash. (Sun, 04 Oct 2009 09:42:03 GMT) (full text, mbox, link).


Acknowledgement sent to Chow Loong Jin <hyperair@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sun, 04 Oct 2009 09:42:03 GMT) (full text, mbox, link).


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

From: Chow Loong Jin <hyperair@gmail.com>
To: 543982@bugs.debian.org, control@bugs.debian.org
Subject: Re: Patch which fixes this issue
Date: Sun, 04 Oct 2009 17:24:13 +0800
[Message part 1 (text/plain, inline)]
tag 543982 -patch
thanks

On Sunday 04,October,2009 05:13 PM, Chow Loong Jin wrote:
> tag 543982 +patch
> thanks
> 
> Here's a patch which appears to fix the issue for me, running Bash 4.0-5ubuntu2.
> I haven't tested it with older versions of Bash though. Please use it as you
> wish, and make further changes if necessary.
> 

*cough*
I didn't see one of the comments pointing to a bug filed in bash-completion.
Seems it's fixed there already. Sorry for the noise.

-- 
Kind regards,
Chow Loong Jin

[signature.asc (application/pgp-signature, attachment)]

Removed tag(s) patch. Request was from Chow Loong Jin <hyperair@gmail.com> to control@bugs.debian.org. (Sun, 04 Oct 2009 09:42:05 GMT) (full text, mbox, link).


Bug reassigned from package 'bash' to 'bash-completion'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:03 GMT) (full text, mbox, link).


Bug No longer marked as found in versions bash/4.0-4. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:04 GMT) (full text, mbox, link).


Bug Marked as found in versions bash-completion/1:1.0-3. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:06 GMT) (full text, mbox, link).


Forcibly Merged 543982 544024 544956 547349 548454 549284 549548 550186 556224. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Thu, 09 Dec 2010 04:27:11 GMT) (full text, mbox, link).


Message sent on to Philipp Weis <pweis@pweis.com>:
Bug#543982. (Thu, 09 Dec 2010 04:27:17 GMT) (full text, mbox, link).


Message #39 received at 543982-submitter@bugs.debian.org (full text, mbox, reply):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 543982-submitter@bugs.debian.org, 544956-submitter@bugs.debian.org, 548454-submitter@bugs.debian.org
Subject: Re: bash: Completion with spaces broken.
Date: Wed, 8 Dec 2010 22:22:59 -0600
reassign 543982 bash-completion 1:1.0-3
unarchive 544024
forcemerge 544024 543982
quit

Philipp Weis wrote:

> For example, if I have a file names "aaa bbb" and I type
> 
>   "ls a<TAB>"
> 
> it autocompletes to
> 
>   "ls aaa\ "
> 
> but not beyond the space in the string. If I hit TAB again, nothing
> happens.
> 
> This worked just fine with bash 3.2-6.
[...]
> ii  bash-completion               1:1.0-3    programmable completion for the ba

Fixed by bash-completion 1.1-1.  Please let me know if that seems not
to be the case.

Thanks for reporting.  




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 06 Jan 2011 07:31:57 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 10:06:25 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.