[Bash-completion-devel] [bash-completion-Bugs][314799] cd autocompletion fails when two folders share the first letters and contain spaces

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Wed Sep 3 17:51:01 UTC 2014


bash-completion-Bugs item #314799, was opened at 2014-09-03 19:51 by Iñaki Baz Castillo
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314799&group_id=100114

Status: Open
Priority: 3
Submitted By: Iñaki Baz Castillo (ibc-guest)
Assigned to: Nobody (None)
Summary: cd autocompletion fails when two folders share the first letters and contain spaces 
Distribution: --Distribution-Agnostic--
Originally reported in: Debian BTS
Milestone: None
Status: None
Original bug number: 


Initial Comment:
- OS:     OSX 10.9.4
- bash (installed with Homebrew):  GNU bash, versión 4.3.18(1)-release (x86_64-apple-darwin13.3.0)
- bash-completion2 (installed with Homebrew):  2.1

I do source the bash_completion file (brew --prefix points to /usr/local/ where the brew stuff is installed):

  source $(brew --prefix)/share/bash-completion/bash_completion


Issue description:

~# mkdir "qwe asd 1"
~# mkdir "qwe asd 2"

~# cd qwe + TAB (press TAB multiple times)

Nothing happens, it writes:

  cd qwe\ asd\

but nothing else, and in case you append "1" or "2", it does neither work.

NOTE: ls command does work in the same scenario!

NOTE: I attach a working patch (tested in my OSX) extracted from a bug report in Debian:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835



----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314799&group_id=100114



More information about the Bash-completion-devel mailing list