Nikolai Weibull wrote:

> echo glob('~/{,}')
> /home/user//
> /home/user//
> 
> The bug is that an extra slash is added at the end.  It's only a
> minory issue, as slashes are usually folded by the OS anyway, but it
> would be better if they weren't added.

Yes, it's strange that the extra {} results in an extra slash.

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

How about using [,]?  Doubling backslash?

-- 
hundred-and-one symptoms of being an internet addict:
99. The hum of a cooling fan and the click of keys is comforting to you.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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

Raspunde prin e-mail lui