aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell/viml_system_spec.lua
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2015-05-02 10:30:30 -0400
committerScott Prager <splinterofchaos@gmail.com>2015-05-02 10:30:30 -0400
commit1c2c90ab0720784473805d20c359499a2d3d2ccf (patch)
tree8c4e587c91bbf91748c7ace6338aa3f609eaec0f /test/functional/shell/viml_system_spec.lua
parent205466830207a920c62146b7b689fac2e395431a (diff)
parent1eb33969220b267cf45adb286f0b7b6d14805eff (diff)
downloadrneovim-1c2c90ab0720784473805d20c359499a2d3d2ccf.tar.gz
rneovim-1c2c90ab0720784473805d20c359499a2d3d2ccf.tar.bz2
rneovim-1c2c90ab0720784473805d20c359499a2d3d2ccf.zip
Merge pull request #2424 from splinterofchaos/term-no-sh
use an argument vector for termopen() / unify jobstart, termopen, and system
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r--test/functional/shell/viml_system_spec.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua
index 922770ad42..bd47d31a14 100644
--- a/test/functional/shell/viml_system_spec.lua
+++ b/test/functional/shell/viml_system_spec.lua
@@ -44,7 +44,7 @@ describe('system()', function()
eq(127, eval('v:shell_error'))
end)
- describe('executes shell function', function()
+ describe('executes shell function if passed a string', function()
local screen
before_each(function()
@@ -192,6 +192,13 @@ describe('system()', function()
end)
end)
end
+
+ describe('command passed as a list', function()
+ it('does not execute &shell', function()
+ eq('* $NOTHING ~/file',
+ eval("system(['echo', '-n', '*', '$NOTHING', '~/file'])"))
+ end)
+ end)
end)
describe('systemlist()', function()