|
From: | Chet Ramey |
Subject: | Re: {A..z} brace expansion in Bash 3 |
Date: | Sun, 01 Aug 2004 17:12:41 -0400 |
User-agent: | Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.6) Gecko/20040113 |
Oliver Kiddle wrote:
It does things like this: $ echo {Z..a} Z [ ] ^ _ a
If you wish to shoot yourself in the foot, bash will not stop you. It might even load the gun for you. :-)
How does it decide what characters are allowed. The following really looks like a bug to me: $ echo {Ä..D} That's accepted and produces output that seems to wrap round to ^A and then goes up to D. Note that I'm using an ISO-8859-1 locale. If that works at all, it should surely descend.
If the first number or letter in the sequence evaluates greater than the second, it will descend. Chet
[Prev in Thread] | Current Thread | [Next in Thread] |