Hi,

> 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. 

Instead of glob, I'm detecting which shell (or perl or python) is
available and running them using system().

This is for bash for example:

let l:path=substitute(a:path, '\([^\.[:alnum:]\*\?/_-]\)', '\\\1', "g")
let l:line="bash -c 'shopt -s nullglob; shopt -u dotglob; export 
GLOBIGNORE=\"\"; cd \"".l:path."\" && for a in ".l:pat."; do echo \"$a\"; done'"
system(l:line), "\n"

-- 
        Vlad

Attachment: pgp4HeOWMorlp.pgp
Description: PGP signature

Raspunde prin e-mail lui