diff src/testdir/test_expand.vim @ 26183:9865f996a3c0 v8.2.3623

patch 8.2.3623: "$*" is expanded to "nonomatch" Commit: https://github.com/vim/vim/commit/8b8d829faf04fe3706c04f7f7000054acd3254e7 Author: Christian Brabandt <cb@256bit.org> Date: Fri Nov 19 12:37:36 2021 +0000 patch 8.2.3623: "$*" is expanded to "nonomatch" Problem: "$*" is expanded to "nonomatch". Solution: Only add "set nonomatch" when using a csh-like shell. (Christian Brabandt, closes #9159, closes #9153)
author Bram Moolenaar <Bram@vim.org>
date Fri, 19 Nov 2021 13:45:02 +0100
parents 2c4d9ca33769
children 2fd2ce8a556c
line wrap: on
line diff
--- a/src/testdir/test_expand.vim
+++ b/src/testdir/test_expand.vim
@@ -1,6 +1,7 @@
 " Test for expanding file names
 
 source shared.vim
+source check.vim
 
 func Test_with_directories()
   call mkdir('Xdir1')
@@ -135,4 +136,9 @@ func Test_expand_filename_multicmd()
   %bwipe!
 endfunc
 
+func Test_expandcmd_shell_nonomatch()
+  CheckNotMSWindows
+  call assert_equal('$*', expandcmd('$*'))
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab