On Feb 15, 8:11 am, Andy Wokula <[email protected]> wrote:
>
> Doesn't work either for `('...`)':
>      cmd /c (cat cm.txt > "c&m.txt")
>
> it creates `c&m.txt)'.
>
> But `('...`)' works when inner special chars are escaped:
>      cmd /c (cat cm.txt ^> ^"c^&m.txt^")
>      cmd /c (echo a ^& echo b)
>      cmd /c (^"my editor.exe^" ^"my filea.txt^")
>
> Special characters according 
> tohttp://www.microsoft.com/resources/documentation/windows/xp/all/prodd...
> are
>      & < > ( ) @ ^ |
> This list might not be complete, the website says "for example".
>
> > If we find a&  inside "" like "&", don't touch it.
> > Otherwise, we automatic add ^ before&  or wrap entire command with
> > "()".
> > Right?
>
> No, we escape all special chars.
>
> New settings:
>      shellcmdflag: /c
>      shellxquote: (
> and escape special chars with `^'.
>

So you're saying, we must escape all special characters, INCLUDING
QUOTES, and surround in parentheses?

That's...special.

-- 
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

Raspunde prin e-mail lui