echo system('echo a & echo b') fail
should escape &
echo system('echo a ^& echo b') passOn 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
