Mercurial > vim
comparison src/testdir/shared.vim @ 9788:3fdf6caf42f7 v7.4.2169
commit https://github.com/vim/vim/commit/446cce6d537b036467033975a86729dbdc83f860
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 21:37:27 2016 +0200
patch 7.4.2169
Problem: Startup test gets stuck on MS-Windows.
Solution: Use double quotes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 06 Aug 2016 21:45:05 +0200 |
parents | 4360b2b46125 |
children | fd32f719d34f |
comparison
equal
deleted
inserted
replaced
9787:da34000b61d4 | 9788:3fdf6caf42f7 |
---|---|
133 call writefile(a:before, 'Xbefore.vim') | 133 call writefile(a:before, 'Xbefore.vim') |
134 call writefile(a:after, 'Xafter.vim') | 134 call writefile(a:after, 'Xafter.vim') |
135 | 135 |
136 let cmd = readfile('vimcmd')[0] | 136 let cmd = readfile('vimcmd')[0] |
137 let cmd = substitute(cmd, '-u \f\+', '-u NONE', '') | 137 let cmd = substitute(cmd, '-u \f\+', '-u NONE', '') |
138 exe "silent !" . cmd . " --cmd 'so Xbefore.vim' -S Xafter.vim" | 138 if cmd !~ '-u NONE' |
139 let cmd = cmd . ' -u NONE' | |
140 endif | |
141 exe "silent !" . cmd . " --cmd \"so Xbefore.vim\" -S Xafter.vim" | |
139 | 142 |
140 call delete('Xbefore.vim') | 143 call delete('Xbefore.vim') |
141 call delete('Xafter.vim') | 144 call delete('Xafter.vim') |
142 return 1 | 145 return 1 |
143 endfunc | 146 endfunc |