Reply to message «[patch] make glob return a list», sent 20:45:57 24 August 2011, Wednesday by Christian Brabandt:
I guess you need the same for expand() (it may be less trivial due to
expand('`=["abc", "def"]`') and expand('`find ...`') with NL=next file). About
the advantage: I have actually never seen glob() without surrounding split().
Not having to type this split() is better advantage then NL-in-filenames
handling.
Original message:
> Bram,
> this time, no fix from the todo list ;)
>
> As discussed recently in this thread¹ on vim_use, you can't access files
> whose name contains newlines (which is ugly but allowed by POSIX). So I
> made a small patch, to have glob() return all matches in a list. This
> way, filenames containing newlines shouldn't make a problem anymore.
>
>
> ¹)http://groups.google.com/group/vim_use/browse_frm/thread/1a404bd561cae811
>
> Mit freundlichen Grüßen
> Christian
signature.asc
Description: This is a digitally signed message part.
