Bram Moolenaar | f4e1143 | 2013-07-03 16:53:03 +0200 | [diff] [blame] | 1 | Test whether glob()/globpath() return correct results with certain escaped |
| 2 | characters. |
| 3 | |
| 4 | STARTTEST |
| 5 | :so small.vim |
| 6 | :set shell=doesnotexist |
| 7 | :e test.out |
Bram Moolenaar | 1b1063a | 2014-05-07 18:35:30 +0200 | [diff] [blame] | 8 | :$put =glob('Xxx\{') |
| 9 | :$put =glob('Xxx\$') |
Bram Moolenaar | f4e1143 | 2013-07-03 16:53:03 +0200 | [diff] [blame] | 10 | :w! Xxx{ |
| 11 | :w! Xxx\$ |
Bram Moolenaar | 1b1063a | 2014-05-07 18:35:30 +0200 | [diff] [blame] | 12 | :$put =glob('Xxx\{') |
| 13 | :$put =glob('Xxx\$') |
| 14 | :" |
| 15 | :$put =string(globpath('sautest/autoload', '*.vim')) |
| 16 | :$put =string(globpath('sautest/autoload', '*.vim', 0, 1)) |
Bram Moolenaar | f4e1143 | 2013-07-03 16:53:03 +0200 | [diff] [blame] | 17 | :w |
| 18 | :qa! |
| 19 | ENDTEST |
| 20 | |