public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* http://stackoverflow.com/questions/32166613/tab-completion-doesnt-complete-paths-with-escaped-space
       [not found] <1628183512.97560026.1440891273577.JavaMail.root@zimbra62-e11.priv.proxad.net>
@ 2015-08-30  2:05 ` lionel.victor
  0 siblings, 0 replies; only message in thread
From: lionel.victor @ 2015-08-30  2:05 UTC (permalink / raw)
  To: cygwin

Hello

I've just installed cygwin on a Windows10 laptop and am experiencing a problem with tab completion under bash:

Indeed, bash-completion stops working past the space character when changing to a path that contains a space or 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/

However, when I want to cd to "Program Files" and type:
$ cd Program\ F
-> pressing Tab does nothing: no completion, no suggestion.

I found a workaround by removing the _cd() function from /etc/bash_completion but clearly that is not a good way to solve this bug.

It is quite possible that tab_completion is not just broken with 'cd' and directories but it *may* also be broken for all files : I just haven't tried (sorry I'm running outta time).

I'm not the only one:
http://stackoverflow.com/questions/32166613/tab-completion-doesnt-complete-paths-with-escaped-space

my setup: Windows 10 - bash 4.3.42 - everything was installed today (i.e. latest versions) ...

The fact that I'm using the latest versions AND that removing a function from /etc/bash_completion suggests that this is a bug...
:o) or maybe not ??? -> you tell me !

thanks in advance for your help.
P.S.: Will post more under the same subject if I can find some time during the week (maybe a patch).

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-08-29 23:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1628183512.97560026.1440891273577.JavaMail.root@zimbra62-e11.priv.proxad.net>
2015-08-30  2:05 ` http://stackoverflow.com/questions/32166613/tab-completion-doesnt-complete-paths-with-escaped-space lionel.victor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).