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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202010281623.09SGN6ii2189857%40masaka.moolenaar.net.

Raspunde prin e-mail lui