Bram Moolenaar wrote:
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.
Oh, right. Calling the shell requires escaping, and using execv()
requires a portability layer and dealing with $PATH. Calling the shell
is relatively simpler.