Yes. Windows doesn't use the shell for wildcard expansion. And I don't
think it does tilde expansion of any kind, even itself.
By the way, please don't mix up top and bottom posting. Mostly on this
list we bottom post. I personally prefer top posting and often people
here won't mind either if a thread is top-posted. But mixing them up is
really confusing. If a thread is already using bottom-posting, please
keep it that way.
Ben.
StarWing wrote:
> it's okay in windows.....
>
> On 11月10日, 下午1时57分, Ben Schmidt <[EMAIL PROTECTED]> wrote:
>> John Little wrote:
>>> Hi all
>>> I've found myself revisiting an issue I raised in 2007. Why does
>>> :echo glob('non_existent~')
>>> give
>>> non_existent~
>>> on *nix? Some side effect of attempted tilde expansion it would
>>> seem. A bug IMO.
>> Yeah, surely that's a bug. The shell returns a wildcard unchanged if it
>> has no matches, but it seems Vim returns nothing. In this case, if Vim
>> refers wildcard expansion to the shell, it should check if what it gets
>> back is the same as what it sent, and assume no matches if it is.
>>
>> However, in this case, no expansion should be even being attempted,
>> because the tilde isn't at the start of the string.
>>
>> So it seems there might be two bugs here.
>>
>> Ben.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---