This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: bash 3.x path completion problems


On 30 May 2006 17:40, burning shadow wrote:

> Since version 3 bash has problems with path completion. 

  Since version 3, bash has had problems with readline causing spurious 'ghost' characters to echo to the screen, particularly when scrolling through the history buffer or using a prompt with non-printing chars in it.  It may affect completion too.

> For example,
> here's directory listing:
> 
> shadow:~/tmp$ ls -la
> total 1
> drwxr-xr-x+  4 shadow None   0 May 30 20:41 .
> drwxr-xr-x+ 10 shadow root   0 May 29 20:34 ..
> drwxr-xr-x+  8 shadow None   0 Apr 26 22:16 games
> drwxr-xr-x+  5 shadow None   0 May 30 20:42 qqq
> -rwx------   1 shadow None 208 Apr  6 20:04 s
> 
> shadow:~/tmp$ ls -la qqq
> total 1
> drwxr-xr-x+ 5 shadow None  0 May 30 20:42 .
> drwxr-xr-x+ 4 shadow None  0 May 30 20:41 ..
> drwxr-xr-x+ 2 shadow None  0 May 30 20:41 162567asd
> -rw-r--r--  1 shadow None 12 May 30 20:42 qqq.txtx
> drwxr-xr-x+ 2 shadow None  0 May 30 20:41 qwter
> drwxr-xr-x+ 2 shadow None  0 May 30 20:42 wqyteuqt
> shadow:~/tmp$
> 
> Now I'm entering "cd q" and pressing Tab 1 time. I get what I expected:
> 
> shadow:~/tmp$ cd qqq/
> 
> Now I'm pressing Tab 2 times and get this:
> 
> shadow:~/tmp$ cd qqq/
> 162567asd/ qqq.txtx   qwter/     wqyteuqt/
> shadow:~/tmp$ cd qqq/qq/
> 
> The problem is that 'qqq/qq/' thing. This was never happened to bash 2.05b.

  The real question is whether the trailing 'qq/' is actually there in the input buffer or if it's just an optical illusion caused by the readline bug.  What happens if you immediately press enter?

  BTW with all the latest updates (including cygwin dll from cvs, but that's probably not relevant) I can't reproduce your example:

dk@rainbow /tmp/try_it> ls -la
total 0
drwxr-xr-x+ 4 dk Domain Users 0 May 30 17:42 .
drwxrwxrwt+ 4 dk Users        0 May 30 17:42 ..
drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:42 games
drwxr-xr-x+ 5 dk Domain Users 0 May 30 17:49 qqq
-rwx------  1 dk Domain Users 0 May 30 17:42 s
dk@rainbow /tmp/try_it> ls -la qqq/
total 0
drwxr-xr-x+ 5 dk Domain Users 0 May 30 17:49 .
drwxr-xr-x+ 4 dk Domain Users 0 May 30 17:42 ..
drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 162567asd
-rw-r--r--  1 dk Domain Users 0 May 30 17:43 qqq.txtx
drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 qwter
drwxr-xr-x+ 2 dk Domain Users 0 May 30 17:49 wqyteuqt
dk@rainbow /tmp/try_it> cd qqq/
162567asd/ qqq.txtx   qwter/     wqyteuqt/
dk@rainbow /tmp/try_it> cd qqq/


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]