Or we can escape " to """. cmd.exe treat """ as quoted double quote. So

----
#include <stdio.h>

int
main(int argc, char* argv[]) {
  int n;
  for (n = 0; n < argc; n++) {
    printf("[%s]\n", argv[n]);
  }
  return 0;
}
----

C:\>arg
[arg]

C:\>arg foo
[arg]
[foo]

C:\>arg "foo"
[arg]
[foo]

C:\>arg ""foo""
[arg]
[foo]

C:\>arg """foo"""
[arg]
["foo"]

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