mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-07 01:24:27 +08:00
Support Windows shell without extension (#997)
Close https://github.com/junegunn/vim-plug/issues/995 Vim supports omitting file extensions for its option. I omitted the file extension in Neovim's documentation for powershell.
This commit is contained in:
@@ -13,6 +13,7 @@ Execute (plug#shellescape() ignores invalid optional argument):
|
||||
Execute (plug#shellescape() depends on the shell):
|
||||
AssertEqual "'foo'\\'''", plug#shellescape("foo'", {'shell': 'sh'})
|
||||
AssertEqual '^"foo''^"', plug#shellescape("foo'", {'shell': 'cmd.exe'})
|
||||
AssertEqual "'foo'''", plug#shellescape("foo'", {'shell': 'powershell'})
|
||||
AssertEqual "'foo'''", plug#shellescape("foo'", {'shell': 'powershell.exe'})
|
||||
AssertEqual "'foo'''", plug#shellescape("foo'", {'shell': 'pwsh'})
|
||||
|
||||
@@ -32,6 +33,9 @@ Execute (plug#shellescape() supports non-trivial cmd.exe escaping):
|
||||
\ }),
|
||||
|
||||
Execute (plug#shellescape() supports non-trivial powershell.exe escaping):
|
||||
AssertEqual '''\"Foo\\''''\\Bar\"''', plug#shellescape('"Foo\''\Bar"', {
|
||||
\ 'shell': 'powershell',
|
||||
\ }),
|
||||
AssertEqual '''\"Foo\\''''\\Bar\"''', plug#shellescape('"Foo\''\Bar"', {
|
||||
\ 'shell': 'powershell.exe',
|
||||
\ }),
|
||||
|
||||
Reference in New Issue
Block a user