diff options
Diffstat (limited to 'src/testdir/test_source.vim')
-rw-r--r-- | src/testdir/test_source.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_source.vim b/src/testdir/test_source.vim index b8fe8422b3..e7f3fb1884 100644 --- a/src/testdir/test_source.vim +++ b/src/testdir/test_source.vim @@ -57,3 +57,13 @@ func Test_different_script() call assert_fails('source XtwoScript', 'E121:') call delete('XtwoScript') endfunc + +" When sourcing a vim script, shebang should be ignored. +func Test_source_ignore_shebang() + call writefile(['#!./xyzabc', 'let g:val=369'], 'Xfile.vim') + source Xfile.vim + call assert_equal(g:val, 369) + call delete('Xfile.vim') +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |