Nazri Ramliy wrote: > On Wed, Aug 4, 2010 at 7:20 PM, Bram Moolenaar <b...@moolenaar.net> wrote: > > If the arguments are the same the returned values should be the same. > > You will need to use a debugger to find out what really happens. > > I did. The problem is due to the static nature of "recursive" in > gen_expand_wildcards(). > Please see my patches to fix this in an earlier follow-up message [1]. > > > I noticed another problem: with 'path' set to "./**" and in an empty > > buffer :find completion crashes. =A0I fixed it. > > Thanks. I'll add this check to the test script.
The test script works OK on Unix, but on MS-Windows it only finds two of the three files. Also interactively, so this appears to be a problem in the implementation. I already changed it to use three separate "mkdir" commands, as "mkdir -p" doesn't work on MS-Windows (and some old Unixen too). I used an edit command instead of ":!echo" to make it portable. What I can't figure out is a portable way to delete the created directories. "rmdir /s /q Xfind" should work, but it gives an error for the /s option... -- The goal of science is to build better mousetraps. The goal of nature is to build better mice. /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php