Tony Mechelynck 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.
> > 
> 
> OK, here are a few more results, with *errors*
> 
> 1. (Ben Schmidt; I confirm) With the patch, after (in bash)
> 
>       touch "It's good"
>       touch "It's bad"
>       touch "It's ugly"
> 
> then, in Vim, command-line completion only works if I don't try to do 
> completion after typing (or entering via a previous completion) a part-name 
> which includes an apostrophe:
> 
>       :e I<Tab>
> 
> allows to select from the 'wildmenu' BUT
> 
>       :e It\'s\ g<Tab>
> 
> fails with a beep
> 
> 
> 2. After editing those files, a Session file is created in error by 
> ":mksession", giving "E77: Too many files" when reloading with the -S option.
> 
> Examination of the session script shows lines such as
> 
>       badd +1 It's\ good
>       badd +1 It's\ bad
>       badd +0 It's\ ugly
> 
> where the quote is NOT backslash-escaped.

It appears it all works fine when 'shell' is "sh", but not when it is
"bash".  What is the difference between "sh" and "bash" considering
single quotes?

-- 
Vim is like Emacs without all the typing.  (John "Johann" Spetz)

 /// 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