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.

A quick test of command-line completion seems OK: ":e t<Tab>" (with 'wildmenu' 
on) found the files created by the external commands

        touch "test 'this & that' filename"
        touch "this&'that other'"
        touch "test filename with ' single quote"

The filenames were the strings above without the double quotes. 
Backslash-escaping looked OK: I could edit the files and save them. Then "ls 
t*" in bash didn't show spurious filenames, and these files' lengths weren't 
zero anymore. If you have other cases in mind, I'm ready to check.


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
208. Your goals for the future are obtaining an ISDN connection and
      a 6 gig hard drive.

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

Raspunde prin e-mail lui