For a while now I'm experiencing an annoying bash-completion problem, namely it doesn't work when a path contains an escaped space. For example, I am in /cygdrive/c and type
$ cd Pro
pressing Tab key completes to "cd Program", pressing twice shows all directories with this "Program" prefix:
Program Files/ Program Files (x86)/ ProgramData/
I want to cd to "Program Files" so I type
$ cd Program\
(with space after backslash) and from now on pressing Tab does nothing. It used to work some time ago but I cannot identify when exactly it stopped. Any hints on what can be the cause of this?
test\ testin my home dir, it completes. Then when I add another directorytest\ test2it only completes totest\ test, but then it doesn't want to suggest the rest of the path. After deletingtest\ test, completion fortest\ test2starts to work again... Weird – Piotr Aug 26 '15 at 21:01bash_completionpackage or runcomplete -r cd? I was having your problem withcdbut not other programs likelsand the those changes fixed the problem. – BeingQuisitive Nov 8 '15 at 2:49complete -r cdand it fixed the issue. Removing the package wasn't necessary. If you write an answer I will accept it.Thanks! :) – Piotr Nov 9 '15 at 9:00