aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/output_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-10 04:16:02 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-10-10 01:16:02 -0700
commit51f2826f617532aaf5d682dfc3229f3723427ce6 (patch)
tree673eab4cfa259774aebfcf5e3d849baa639e2d0f /test/functional/ui/output_spec.lua
parentf2ad93168b15dd808fff545cc8bec510cc020e0a (diff)
downloadrneovim-51f2826f617532aaf5d682dfc3229f3723427ce6.tar.gz
rneovim-51f2826f617532aaf5d682dfc3229f3723427ce6.tar.bz2
rneovim-51f2826f617532aaf5d682dfc3229f3723427ce6.zip
doc: update shellquote for powershell #11122
shellquote is not treated like shellxquote for non-quote values.
Diffstat (limited to 'test/functional/ui/output_spec.lua')
-rw-r--r--test/functional/ui/output_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index c028f44b44..c5d3e536ad 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -10,6 +10,7 @@ local iswin = helpers.iswin
local clear = helpers.clear
local command = helpers.command
local nvim_dir = helpers.nvim_dir
+local set_shell_powershell = helpers.set_shell_powershell
describe("shell command :!", function()
local screen
@@ -230,4 +231,19 @@ describe("shell command :!", function()
]])
end)
end)
+ if iswin() or eval('executable("pwsh")') == 1 then
+ it('powershell supports literal strings', function()
+ set_shell_powershell()
+ local screen = Screen.new(30, 4)
+ screen:attach()
+ feed_command([[!'echo $a']])
+ screen:expect{any='\necho %$a', timeout=10000}
+ feed_command([[!$a = 1; echo '$a']])
+ screen:expect{any='\n%$a', timeout=10000}
+ feed_command([[!"echo $a"]])
+ screen:expect{any='\necho', timeout=10000}
+ feed_command([[!$a = 1; echo "$a"]])
+ screen:expect{any='\n1', timeout=10000}
+ end)
+ end
end)