forked from aniani/vim
patch 8.2.3071: shell options are not set properly for PowerShell
Problem: Shell options are not set properly for PowerShell. Solution: Use better option defaults. (Mike Willams, closes #8459)
This commit is contained in:
committed by
Bram Moolenaar
parent
ffec6dd16a
commit
127950241e
@@ -2142,7 +2142,8 @@ executable_exists(char *name, char_u **path, int use_path, int use_pathext)
|
||||
return FALSE;
|
||||
|
||||
// Using the name directly when a Unix-shell like 'shell'.
|
||||
if (strstr((char *)gettail(p_sh), "sh") != NULL)
|
||||
if (strstr((char *)gettail(p_sh), "powershell") == NULL
|
||||
&& strstr((char *)gettail(p_sh), "sh") != NULL)
|
||||
noext = TRUE;
|
||||
|
||||
if (use_pathext)
|
||||
|
Reference in New Issue
Block a user