Am 18.09.2019 um 00:09 schrieb CrispyDrone (Vim Github Repository):
*Describe the bug*
I've exhausted all options and followed the documentation but am unable to get 
|:! {cmd}| to work with the following shell configuration:

|set shell=\"$PROGRAMW6432\Git\bin\bash.exe\"
|

I've also the tried the following and more:

|set shell=$PROGRAMW6432\Git\bin\bash.exe
set shell=$PROGRAMW6432/Git/bin/bash.exe
set shell=\"\"$PROGRAMW6432/Git/bin/bash.exe\"\"
set shell=\'\"$PROGRAMW6432/Git/bin/bash.exe\"\'
set shell=\"\'$PROGRAMW6432/Git/bin/bash.exe\'\"
set shell=\'$PROGRAMW6432/Git/bin/bash.exe\'
set shell=\"C:\Program Files\Git\bin\bash.exe\"
set shell=\"C:\Program\ Files\Git\bin\bash.exe\"
set shell=\"C:\Program\\ Files\Git\bin\bash.exe\"
set shell=\"C:\Program\\\ Files\Git\bin\bash.exe\"
set shell=C:\Program\\\ Files\Git\bin\bash.exe
..
|

*To Reproduce*

 1. Run |vim -u .vimrc| where .vimrc contains the single |set shell| line of 
configuration.
 2. Execute for example |:!ls|
 3. Receive the error message as shown in the screenshot

*Expected behavior*
The |{cmd}| is executed in the configured shell.

*Screenshots*
'Program' is not recognized as an internal or external command: quoting issues... 
<https://user-images.githubusercontent.com/37639058/65081954-1237f880-d9a5-11e9-8c29-2ed96b7f7c2b.png>

*Environment:*

Other things to try:
    :let &shell = substitute(expand('$PROGRAMW6432\Git\bin\bash.exe'), ' ', '^ 
', 'g')
    :let &shell = substitute('C:\Program Files\Git\bin\bash.exe', ' ', '^ ', 
'g')
    :let &shell = 'C:\Program" "Files\Git\bin\bash.exe'

--
Andy

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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/5D827D20.1010000%40yahoo.de.

Raspunde prin e-mail lui