On Tue, Jan 15, 2008 at 13:08:01 +0000, Tony Mechelynck wrote: > > Dasn wrote: > > On 14/01/08 21:49 +0100, Adri Verhoef wrote: > >>> 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)
[snip] > >> Adri (Vim 7.1 + patches 1-200 plus Bram's "Patch for Unix filename > >> expansion") > >> > > > > I can't reproduce this with 1-229. Patch 223 has been released, have a > > try? > > > > There were two successive versions of Bram's patch in this thread (the second > version replacing only part of the first), and both have been released since > then. If Adri was using the first version, and it was corrected by the second > one, that would explain it. Bram's "Patch for Unix filename expansion" is in fact patches 7.1.223 + 7.1.226. My shell is Bash on Fedora 7. (se sh=/bin/sh) -rwxr-xr-x 1 root root 801504 2007-11-26 16:03 /bin/bash lrwxrwxrwx 1 root root 4 2008-01-14 08:58 /bin/sh -> bash Anyway, I tried reversing Bram's "Patch for Unix filename expansion", then apply #223, yet it fails to see the filenames containing a space character. This time I tried this directory structure: b'c/file001 b'c/file 01 b'c/file 1 Three files, one with one space in its name, one with two spaces in its name (between 'e' and '1'). Typing: :n b\'c/*<TAB><TAB> or :n b\'c/<TAB><TAB> (without the asterisk) only shows one filename: file001 My next try was to put only one file in a directory called "c'd", like so: $ mkdir c\'d $ touch c\'d/one\ space $ src/vim :n c\'d/<TAB><TAB> (This just beeps at me. No filename matching.) One other try then, without the apostrophe to ensure that we don't need a backslash at first (for locating the directory). $ mkdir de $ touch de/sp\ a\ ce $ src/vim :n de/*<TAB><CR> "de/sp a ce" 0L, 0C (Result: OK!) OK, then back to directory "c'd" which contains the filename "one space". $ src/vim :n c\'d/* "c'd/one" 0L, 0C :arg [c'd/one] space So this is where something goes wrong, if anyone can follow me. With patches 7.1.0-200 + 7.1.223 + 7.1.226. Adri --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---