On Fri, Jan 04, 2008 at 12:17:42 +0000, Bram Moolenaar wrote:
> 
> 
> A couple of problems were detected when the Unix shell is used to expand
> file names containing characters such as a single quote.  This applies
> to completion on the command line and glob().
> 
> I made a patch that defines a function to echo each file name
> separately.  Inspired by a patch that Dasn made, but staying on the safe
> side.
> 
> The patch for ex_docmd.c changes detecting the end of the file name when
> doing command line completion.  This specifically fixes a file name
> containing "&".
> 
> Please try it out and let me know if there are any new problems.

I tried it out and found a problem.  This is my directory structure:

a'b/
   DS=70
   DS 70
   DS=D66 + S70

There is a directory "a'b" and it contains three files.
The first filename ("DS=70") doesn't contain any spaces, the other two do.

Now I start Vim.  At first, I'm inputting ":n a" followed by a TAB.
The screen will display ":n a\'b/", which is correct.  Then I type a TAB again
and again and again.
$ vim
        :n a<TAB>
:n a\'b/

        :n a\'b/<TAB><TAB><TAB>
:n a\'b/DS=70
:n a\'b/DS=70
:n a\'b/DS=70
                (Nothing happens, only one filename matches)

        :n a\'b/*6<TAB>
                (Nothing happens, no filename matches)
        :n a\'b/*6*0<TAB>
                (Nothing happens, no filename matches)
        :n a\'b/DS\ 7<TAB>
                (Nothing happens, no filename matches)

        :n a\'b/DS\<TAB>
:n a\'b/DS\*


Adri (Vim 7.1 + patches 1-200 plus Bram's "Patch for Unix filename expansion")

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to