On 12/01/08 22:15 +0100, Bram Moolenaar wrote:
>
>
>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 first said I could reproduce it, but that was because I didn't have
>any ksh installed.  I now installed one, and it appears to work just
>fine for me.
>
>There is more than one version of ksh.  I'm using this version:
>
>       KSH_VERSION='@(#)PD KSH v5.2.14.2 99/07/13.2'
>
>What I did is:
>
>       :set shell=ksh
>       :echo glob("/tmp/a's & b's/*")
>       /tmp/a's & b's/c + d 
>       /tmp/a's & b's/four
>
>
>If it still doesn't work for you, please give the glob() that you
>actually used.
>

Hmm, I might be boring bossy, but still expecting to use glob(3) or
fnmatch(3) directly ...

-- 
Dasn


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

Raspunde prin e-mail lui