You can execute
cmd /c ("my editor.exe" "my filea.txt" a ^& dir) as well.If we find a & inside "" like "&", don't touch it. Otherwise, we automatic add ^ before & or wrap entire command with "()". Right? On Feb 15, 8:42 pm, mattn <[email protected]> wrote: > > Patch: > > shellcmdflag: /c (not sure if `/s /c' would make a difference, > > I'd expect `/c' to always remove outer quotes) > > shellxquote: "( > > or maybe: > > shellxquote: "(,)" (new syntax!) > > > Yeah, this works now (also did without patch 7.3.443): > > user executes :!echo a & echo b > > I tried following. > > C:\>copy c:\vim\vim.exe "my editor.exe" > > C:\>cmd /c ("my editor.exe" "my filea.txt" a & dir) > > # This is meaning that editing two files. If the editor exit, do dir. But... > > C:\>cmd /s /c ("my editor.exe" "my filea.txt" a & dir) > 'dir)' is not recognized as an internal or external command, > operable program or batch file. > > Thus, I guess "/s" is needed. > > C:\>cmd /s /c "("my editor.exe" "my filea.txt" a & dir)" > > This is working well. :) > > Thanks. -- 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
