Skip to content

Commit 57256fd

Browse files
committed
system()'s return value is string
1 parent bcc5ce9 commit 57256fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/run.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function! s:run()
1818
catch
1919
call writefile([v:exception], outfile)
2020
endtry
21-
if system(printf('diff %s %s', shellescape(okfile), shellescape(outfile))) == 0
21+
if system(printf('diff %s %s', shellescape(okfile), shellescape(outfile))) == ""
2222
echo printf('%s => ok', fnamemodify(vimfile, ':t'))
2323
else
2424
echoerr printf('%s => ng', fnamemodify(vimfile, ':t'))

0 commit comments

Comments
 (0)