diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-26 16:27:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-26 16:27:38 +0100 |
commit | 7851b1ca992222880df1314684a790f293e11896 (patch) | |
tree | 71631a93383bb440a41f850664ba21b562609d02 /src/testdir/test_channel.vim | |
parent | a9c3a30891edd7347d94298c48ea68bb5c165fd7 (diff) | |
download | vim-git-7851b1ca992222880df1314684a790f293e11896.tar.gz |
patch 8.2.0453: trailing space in job_start() command causes empty argumentv8.2.0453
Problem: Trailing space in job_start() command causes empty argument.
Solution: Ignore trailing space. (closes #5851)
Diffstat (limited to 'src/testdir/test_channel.vim')
-rw-r--r-- | src/testdir/test_channel.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index 8fa67ef65..fc8b3729a 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -2035,4 +2035,12 @@ func Test_issue_5485() unlet $VAR1 endfunc +func Test_job_trailing_space_unix() + CheckUnix + CheckExecutable cat + let job = job_start("cat ", #{in_io: 'null'}) + call WaitForAssert({-> assert_equal("dead", job_status(job))}) + call assert_equal(0, job_info(job).exitval) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |