mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
shell/logging: Fix E730 with verbose system({List}) #9009
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790 Steps to reproduce: :set verbose=9 :call system(['echo']) E730: using List as a String
This commit is contained in:
@@ -203,23 +203,13 @@ describe('system()', function()
|
||||
end)
|
||||
|
||||
it('prints verbose information', function()
|
||||
screen:try_resize(72, 14)
|
||||
feed(':4verbose echo system("echo hi")<cr>')
|
||||
screen:expect([[
|
||||
|
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
~ |
|
||||
|
|
||||
Calling shell to execute: "echo hi" |
|
||||
|
|
||||
hi |
|
||||
|
|
||||
Press ENTER or type command to continue^ |
|
||||
]])
|
||||
if iswin() then
|
||||
screen:expect{any=[[Executing command: "'cmd.exe' '/s' '/c' '"echo hi"'"]]}
|
||||
else
|
||||
screen:expect{any=[[Executing command: "'/[^']*sh' '%-c' 'echo hi'"]]}
|
||||
end
|
||||
feed('<cr>')
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user