Charles Campbell wrote:

> 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.
> >  
> >
> Verhoef sent me a directory structure:
> 
> a & b/
>   one
>   two
> 
> a's & b's/
>  three
>  four
> 
> Netrw works for the first "a & b", and does so with the new patch.  
> However, it does not work for the second set ("a's & b's"); the glob() 
> for it returns the empty string:
> 
> ...netrw debugging info..
> ||||glob(dirname</home/cec/.vim/VIMSCRIPT/TST/NETRW/Verhoef/a's & b's/*>)=
> ...more netrw debugging info
> 
> I used ksh under Fedora Core Linux and a vim compiled with the patch.

I can reproduce the problem.  Only with ksh, it works fine with tcsh,
bash and sh.

-- 
TALL KNIGHT: When you have found the shrubbery, then you must cut down the
             mightiest tree in the forest ... with a herring.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- 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.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui