patch update
add a os_win32 patch
--- os_win32_org.c 2012-02-14 21:18:54 +0800
+++ os_win32.c 2012-02-14 21:24:27 +0800
@@ -3909,6 +3909,7 @@
if (newcmd != NULL)
{
char_u *cmdbase = (*cmd == '"' ? cmd + 1 : cmd);
+ cmdbase = (*cmd == '(' ? cmd + 1 : cmd);
if ((STRNICMP(cmdbase, "start", 5) == 0) &&
vim_iswhite(cmdbase[5]))
{
Previous patch broke !start.
Now it works.
On Feb 14, 6:21 pm, RoDo <[email protected]> wrote:
> Good.
>
> small patch:
>
> --- misc2_org.c 2012-02-14 18:09:38 +0800
> +++ misc2.c 2012-02-14 17:51:54 +0800
> @@ -3230,7 +3230,13 @@
> {
> STRCPY(ncmd, p_sxq);
> STRCAT(ncmd, cmd);
> - STRCAT(ncmd, p_sxq);
> + if (STRCMP(p_sxq, "(") == 0)
> + {
> + STRCAT(ncmd, ")");
> + } else
> + {
> + STRCAT(ncmd, p_sxq);
> + }
> retval = mch_call_shell(ncmd, opt);
> vim_free(ncmd);
> }
>
> shellcmdflag = /c
> shellxquote = (
>
> echo system('dir "&") pass
> echo system('echo "a&b") pass
> system('"exe have space"') pass
> system('"exe have sapce" "some arg with spaces"') pass
> system('"exe have spce" "some arg with &"') pass
>
> On Feb 14, 2:40 am, Andy Wokula <[email protected]> wrote:
>
>
>
>
>
>
>
> > Am 13.02.2012 19:14, schrieb Andy Wokula:
>
> > > C:\>("C:\Program Files\abc.exe" "some arg with spaces")
>
> > er, I meant
> > C:\> cmd /c ("C:\Program Files\abc.exe" "some arg with spaces")
>
> > --
> > Andy
--
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