Mercurial > vim
diff src/testdir/test_channel.vim @ 19793:607e5d7968b9 v8.2.0453
patch 8.2.0453: trailing space in job_start() command causes empty argument
Commit: https://github.com/vim/vim/commit/7851b1ca992222880df1314684a790f293e11896
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 26 16:27:38 2020 +0100
patch 8.2.0453: trailing space in job_start() command causes empty argument
Problem: Trailing space in job_start() command causes empty argument.
Solution: Ignore trailing space. (closes https://github.com/vim/vim/issues/5851)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 26 Mar 2020 16:30:03 +0100 |
parents | b3e93a05c3ca |
children | 4403ab355d5e |
line wrap: on
line diff
--- 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