Make every command work would be very complicated.
Vim need to parse the command and understand it correctly, then escape
the special chars.
Let's give it back to user and cmd.exe. XD


On Feb 15, 11:06 am, Bram Moolenaar <b...@moolenaar.net> wrote:
> Ben Fritz wrote:
> > On Feb 14, 4:31 am, RoDo <royad...@gmail.com> wrote:
> > > echo system('echo a & echo b') fail
> > > should escape &
> > > echo system('echo a ^& echo b') pass
>
> > It looks like most of the use cases pass when using the () patch for
> > shellxquote, I like that option.
>
> > Since there are still some failures when using an unescaped & maybe we
> > should put a note in the help about how to escape it as well, probably
> > in :help :! and :help system() both.
>
> Using & in a command is unusual. Having the command work with spaces in
> the command name and argument name is much more important.
>
> But we would like to make every command work...
>
> --
> Creating the world with Emacs:   M-x let-there-be-light
> Creating the world with Vim:     :make world
>
>  /// Bram Moolenaar -- b...@moolenaar.net --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

Raspunde prin e-mail lui