Friday, November 13, 2015

Re: expand function result different

Hi bstaint!

On Do, 12 Nov 2015, bstaint@gmail.com wrote:

> I am try execute command:
>
> :echo expand('*.test')
>
> Windows return empty string, Linux return "*.test", Why?

Because the shell is used to expand the glob. On Unix, when the '*' does
not expand to anything, it will be kept as literal '*' while when it
matches something, the program only sees the expanded filenames.

Not sure how Windows cmd.exe handles things there.

Best,
Christian
--
Ähnlichkeit ist Identität der Qualitäten.
-- Immanuel Kant

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: