mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
Fix #1298 - Escape commands for PowerShell
This commit is contained in:
1 parent
f6af75aac4
commit
045c92ed65
4 files changed
+67
-5
No files matched your search
@@ -30,10 +30,10 @@ Execute(Other shells should be used when set):
|
||||
AssertEqual ['/bin/bash', '-c', 'foobar'], ale#job#PrepareCommand(bufnr(''), 'foobar')
|
||||
endif
|
||||
|
||||
Execute(cmd /c as a string should be used on Windows):
|
||||
Execute(cmd /s/c as a string should be used on Windows):
|
||||
if has('win32')
|
||||
let &shell = 'who cares'
|
||||
let &shellcmdflag = 'whatever'
|
||||
|
||||
AssertEqual 'cmd /c foobar', ale#job#PrepareCommand(bufnr(''), 'foobar')
|
||||
AssertEqual 'cmd /s/c "foobar"', ale#job#PrepareCommand(bufnr(''), 'foobar')
|
||||
endif
|
||||
Reference in new issue
Block a user