Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: RFE: Brace expansion with single characters
On 2014-01-08 00:11:17 +0100, Simon Ruderich wrote:
> Zsh also supports this, you just need to set the BRACE_CCL
> option:
>
> % echo {a-j}
> {a-j}
> % setopt braceccl
> % echo {a-j}
> a b c d e f g h i j
Not the way bash behaves:
In bash:
$ echo {a..j}
a b c d e f g h i j
In zsh:
% echo {a..j}
{a..j}
% setopt braceccl
% echo {a..j}
. a j
That's buggy. And the support for "-" is a bad idea:
% echo {2014-01-08}
0 1 2 4 8
so that one cannot use dates in braces (very useful for svn users).
No problems with bash.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author