Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15765 > unrolled thread
| Started by | L A Walsh <bash@tlinx.org> |
|---|---|
| First post | 2019-12-20 16:35 -0800 |
| Last post | 2019-12-20 16:35 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Unicode range and enumeration support. L A Walsh <bash@tlinx.org> - 2019-12-20 16:35 -0800
| From | L A Walsh <bash@tlinx.org> |
|---|---|
| Date | 2019-12-20 16:35 -0800 |
| Subject | Re: Unicode range and enumeration support. |
| Message-ID | <mailman.1206.1576888517.1979.bug-bash@gnu.org> |
On 2019/12/18 11:46, Greg Wooledge wrote:
> To put it another way: you can write code that determines whether
> an input character $c matches a glob or regex like [Z-a]. (Maybe.)
>
> But, you CANNOT write code to generate all of the characters from Z to a
>
This generates characters from decimal 8300 - 8400 (because that range
includes raised and lowered digits which have the number and value
properties equivalent to 0-9.
----
No? 8300, 8400 arbitrary code points that contain raised and lowered numbers
that have the number property (as does 0..9):
perl -we' use strict; use v5.16;
my $c;
for ($c=8300;$c<8400;++$c) {
my $o=chr $c;
printf "%s", $o if $o=~/\pN/; #match unicode property "is_num"
};printf "\n"'
⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉
Q.E.D.
Is that sufficient proof?
Back to top | Article view | gnu.bash.bug
csiph-web