Patch 8.2.1917
Problem: No test for improved Man command.
Solution: Test that shell arguments are properly escaped.
Files: src/testdir/test_man.vim
*** ../vim-8.2.1916/src/testdir/test_man.vim 2020-08-12 18:50:31.879655802 +0200
--- src/testdir/test_man.vim 2020-10-28 17:20:03.529241070 +0100
***************
*** 132,135 ****
--- 132,149 ----
%bw!
endfunc
+ " Check that underlying shell command arguments are escaped.
+ func Test_Man_uses_shellescape()
+ Man `touch\ Xbar` `touch\ Xfoo`
+
+ redir => msg
+ 1messages
+ redir END
+ call assert_match('no manual entry for "`touch Xfoo`"', msg)
+
+ call assert_false(filereadable('Xbar'))
+ call assert_false(filereadable('Xfoo'))
+ endfunc
+
+
" vim: shiftwidth=2 sts=2 expandtab
*** ../vim-8.2.1916/src/version.c 2020-10-28 16:54:43.689269256 +0100
--- src/version.c 2020-10-28 17:20:45.609145243 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1917,
/**/
--
Fingers not found - Pound head on keyboard to continue.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///