Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: RFE: Brace expansion with single characters



On Wed, Jan 8, 2014 at 12:11 AM, Simon Ruderich <simon@xxxxxxxxxxxx> wrote:
> On Tue, Jan 07, 2014 at 07:49:07PM -0200, Daniel Serodio wrote:
>> As a long time zsh user, I was surprised to find a bash feature missing from
>> zsh: on bash, brace expansion also works with single characters, while on
>> zsh only digits.
>
> 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

Sorry to butt in but doesn't this sound a bit rude to anyone ?

As in

echo {0..12}

Does what is expected

echo {a..z}

Does nothing as expected

setopt braceccl
echo {a-z}

does something somebody expected ?

Shouldn't there be some kind of uniformity or is this for a reason ?
The other two shells work as expected.

Thanks in advance,

Jerry



Messages sorted by: Reverse Date, Date, Thread, Author