comparison src/testdir/test_filter_cmd.vim @ 14913:d4777be849d0 v8.1.0468

patch 8.1.0468: MS-Windows: filter command with pipe character fails commit https://github.com/vim/vim/commit/0664089eccec1083dd04ef2255856fb34ce62f15 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 9 21:49:33 2018 +0200 patch 8.1.0468: MS-Windows: filter command with pipe character fails Problem: MS-Windows: Filter command with pipe character fails. (Johannes Riecken) Solution: Find the pipe character outside of quotes. (Yasuhiro Matsumoto, closes #1743, closes #3523)
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 Oct 2018 22:00:07 +0200
parents 4b152b5f414f
children c5ec5ddbe814
comparison
equal deleted inserted replaced
14912:cf4333fc16bb 14913:d4777be849d0
72 72
73 " Complete after regexp pattern 73 " Complete after regexp pattern
74 call assert_equal('filter /pat/ print', s:complete_filter_cmd('filter /pat/ pri')) 74 call assert_equal('filter /pat/ print', s:complete_filter_cmd('filter /pat/ pri'))
75 call assert_equal('filter #pat# print', s:complete_filter_cmd('filter #pat# pri')) 75 call assert_equal('filter #pat# print', s:complete_filter_cmd('filter #pat# pri'))
76 endfunc 76 endfunc
77
78 func Test_filter_cmd_with_filter()
79 new
80 set shelltemp
81 %!echo "a|b"
82 let out = getline(1)
83 bw!
84 if has('win32')
85 let out = trim(out, '" ')
86 endif
87 call assert_equal('a|b', out)
88 set shelltemp&
89 endfunction