blob: d4ff6d9295ca91896cdc147b03e4bd4a69960ac1 [file] [log] [blame]
Bram Moolenaarf4e11432013-07-03 16:53:03 +02001Test whether glob()/globpath() return correct results with certain escaped
2characters.
3
4STARTTEST
5:so small.vim
Bram Moolenaarb7547422014-05-08 11:46:27 +02006:" make sure glob() doesn't use the shell
Bram Moolenaarf4e11432013-07-03 16:53:03 +02007:set shell=doesnotexist
Bram Moolenaarb7547422014-05-08 11:46:27 +02008:" consistent sorting of file names
9:set nofileignorecase
Bram Moolenaarf4e11432013-07-03 16:53:03 +020010:e test.out
Bram Moolenaar1b1063a2014-05-07 18:35:30 +020011:$put =glob('Xxx\{')
12:$put =glob('Xxx\$')
Bram Moolenaarf4e11432013-07-03 16:53:03 +020013:w! Xxx{
14:w! Xxx\$
Bram Moolenaar1b1063a2014-05-07 18:35:30 +020015:$put =glob('Xxx\{')
16:$put =glob('Xxx\$')
17:"
18:$put =string(globpath('sautest/autoload', '*.vim'))
19:$put =string(globpath('sautest/autoload', '*.vim', 0, 1))
Bram Moolenaarf4e11432013-07-03 16:53:03 +020020:w
21:qa!
22ENDTEST
23