Yukihiro Nakadaira wrote:
> :cd doesn't work properly under directory which contains wildcard character.
>
> Steps to reproduce:
>
> on linux
>
> $ mkdir -p '[z-a]/xxx'
> $ cd '[z-a]'
> $ vim -u NONE
> :cd xxx
> E16: Invalid range <- error for [z-a]
> E344: Can't find directory "xxx" in cdpath
> E472: Command failed
>
>
> $ mkdir -p '**/xxx/yyy'
> $ cd '**'
> $ vim -u NONE
> :cd yyy
> /tmp/**/xxx/yyy <- cd succeeded
And:
> And same problem is on finddir().
>
> $ mkdir -p '[z-a]/xxx'
> $ cd '[z-a]'
> $ vim -u NONE
> :echo finddir('xxx')
> E16: Invalid range <- error for [z-a]
Another problem in find_file_in_path.
I'll make a patch to work around it.
The second problem will persist, it's very hard knowing that the "**"
part should not be expanded. Requires a full rewrite of the
find_file_in_path code.
--
Snoring is prohibited unless all bedroom windows are closed and securely
locked.
[real standing law in Massachusetts, United States of America]
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php