diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-06 01:07:41 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-06 01:07:41 +0200 |
commit | d78f03f86045184dfd191f00359baa61e2e79d1f (patch) | |
tree | 3652e1c4a1072058b0d51d480b4cdfa3e6d5abc0 /src/testdir/test_channel.vim | |
parent | c902609f69b5662484f78dbf509715940d4134e4 (diff) |
patch 8.0.1176: job_start() does not handle quote and backslash correctlyv8.0.1176
Problem: Job_start() does not handle quote and backslash correctly.
Solution: Remove quotes, recognize and remove backslashes.
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 951f9a3baf..9dba0c4b75 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -1590,6 +1590,22 @@ func Test_collapse_buffers() bwipe! endfunc +func Test_cmd_parsing() + if !has('unix') + return + endif + call assert_false(filereadable("file with space")) + let job = job_start('touch "file with space"') + call WaitFor('filereadable("file with space")') + call assert_true(filereadable("file with space")) + call delete("file with space") + + let job = job_start('touch file\ with\ space') + call WaitFor('filereadable("file with space")') + call assert_true(filereadable("file with space")) + call delete("file with space") +endfunc + func Test_raw_passes_nul() if !executable('cat') || !has('job') return |