On Nov 12, 2007 3:36 PM, Vladimir Marek <[EMAIL PROTECTED]> wrote:
> > > > 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

Uh.  That's horrible.  It's a pain that whenever you do any kind of
VimScripting you always have to cover all your bases.  It's getting to
become unmanageable.

Either way, there's no way to escape a comma inside braces.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui