Yasuhiro Matsumoto wrote:
> job_start quote with double-quote even though no needed.
>
> job_start("cmd", "/c", "dir *.c")
>
> This should be
>
> cmd /c "dir *.c"
>
> But
>
> "cmd" "/c" "dir *.c"
>
> All arguments are quoted.
Thanks. It's probably good enough for now, but please have a look at
all the escaping going on in mch_call_shell() in os_win32.c. We
probably need to refactor the code and merge the system() stuff with
starting a job. Essentially it does the same thing, except that
system() also redirects stdin/stdout and waits for the command to
finish.
I also want to be able to run a command in a separate window soon.
Perhaps vimrun.exe can be used? It doesn't do redirection though.
Perhaps the code in mch_system_classic() works better.
--
We apologise again for the fault in the subtitles. Those responsible for
sacking the people who have just been sacked have been sacked.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.