Fan Decheng wrote:

> Bram Moolenaar wrote:
> > Patch 7.0.111
> > Problem:    The gzip plugin can't handle filenames with single quotes.
> > Solution:   Add and use the shellescape() function. (partly by Alexey 
> > Froloff)
> > Files:      runtime/autoload/gzip.vim, runtime/doc/eval.txt, src/eval.c,
> >             src/mbyte.c, src/misc2.c, src/proto/misc2.pro
[...]
> I wonder whether it is possible to use execv() instead of escaping the 
> command and then sending it to the shell. How do you think?

Vim doesn't have an execv() function.  Implementing this properly for
all systems isn't that simple.  At least you would need to take care of
$PATH.

-- 
For society, it's probably a good thing that engineers value function over
appearance.  For example, you wouldn't want engineers to build nuclear power
plants that only _look_ like they would keep all the radiation inside.
                                (Scott Adams - The Dilbert principle)

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

Reply via email to