Yasuhiro Matsumoto wrote:

> I'm having this issue for long time.
> I want to use shellshash on windows. Because some GNU's win32
> utilities are not work correctly with including backslash in the path.
> And I remember: that Vim was working cheerfully with set shellslash on
> windows.
> Perhaps become at version 7.0, I couldn't use shellshash on windows on
> a sudden.
> 
>    if set shellslash, "shellescape()" quote the arguments with single
> quote.
> 
> The arguments for external command became to quote as single quote.
> i.e., I lost the way to use shellslash for passing double quoted
> arguments.
> To make matters worse, I get an error with doing following.
> 
>   :e http://www.google.com/
>   :!curl 'http://www.google.com/' -o 'C:/DOCUME~1/MATTN/Temp/
> VIA2046.tmp'
>   curl: (1) Unsupported protocol: 'http
> 
> And I'll look that buffer name will be following.
> 
>   http:\\www.google.com\
> 
> Few months ago, I posted few suggestion about fixing this problem. But
> it was not solved.
> I tried to change to use noshellshash in my vimrc repeatedly. but I
> couldn't be love it.
> 
> So I want to suggest to fix this again.
> 
> By and large, most user is using cmd.exe (or command.com) on windows.
> This is meaning that Vim should escape double quote to pass the
> arguments for command.
> However, currently Vim interpret shellslash option against whether
> should use single or double quote.
> This is not right. This should be checked whether a 'shell' option
> contain 'sh'. (same as shellxquote option)
> 
> Please check this patch.

'shellslash' assumes that you are using a Unix-like shell.  I don't see
how you can set 'shellslash' and use cmd.exe, many external commands
that use Windows commands or are handled by the shell will fail,
since all / in the argument are seen as flags.

Having the behavior depend on 'shellxquote' makes this more complicated,
I'm not sure if that is a good idea.  It's hard to think of all the
possible combinations of commands (both shell and others) and what
arguments they take.

So why don't you use a Unix-like shell?

-- 
BRIDGEKEEPER: What is your favorite editor?
GAWAIN:       Emacs ...  No, Viiiiiiiiiiimmmmmmm!
           "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.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