On 7/31/06, Bob Hiestand <[EMAIL PROTECTED]> wrote:
Question one:
Is there a way to achieve execution of system commands without using
the shell?
Yes, via libcall() ( :help libcall()). You can write your own function in
a shared lib that will do fork()+exec() without intermediate /bin/sh.
However, quoting using single-quotes is much easier
method of avoiding expansion of special shell chars. For example:
:let result = system("cmd '[EMAIL PROTECTED]' '[EMAIL PROTECTED]' ")
All these characters in this examples are passed unexpanded
to the command cmd because of single quotes.
Yakov