> > > Another issue is that there's doesn't seem to be a way to escape a
> > > comma inside a brace expansion. Neither two commas in a row or a
> > > backslash seem to generate a comma.
> >
> > glob behaves depending on your shell settings. Out of my experience,
> > best is csh or tcsh, where glob works reliably. Worst is sh.
> 
> Vim's glob() function doesn't depend on the shell.

I'm sorry if I have been mislead somehow, I got the impression from
reading sources.

:set shell=/bin/tcsh
:echo glob("a 'b/*")
-> a 'b/file
:set shell=/bin/bash
:echo glob("a 'b/*")
-> a

I think that the difference here is because of shell_style variable. See
my mail at http://tech.groups.yahoo.com/group/vimdev/message/48353

But again, I might be wrong since I gave it 20 minutes or so.

-- 
        Vlad

Attachment: pgpYG1EMxR7iK.pgp
Description: PGP signature

Raspunde prin e-mail lui