Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15765
| Path | csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | L A Walsh <bash@tlinx.org> |
| Newsgroups | gnu.bash.bug |
| Subject | Re: Unicode range and enumeration support. |
| Date | Fri, 20 Dec 2019 16:35:05 -0800 |
| Lines | 34 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1206.1576888517.1979.bug-bash@gnu.org> (permalink) |
| References | <9dd3a388-39b1-c059-de99-813f1e411764@case.edu> <5DF2987E.5000309@tlinx.org> <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org> <5DF4BDF0.6000402@tlinx.org> <20191216163906.GV851@eeg.ccf.org> <5DFA7AE2.2060504@tlinx.org> <20191218194651.GH851@eeg.ccf.org> <5DFD68B9.3050202@tlinx.org> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1576888518 25129 209.51.188.17 (21 Dec 2019 00:35:18 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| To | Greg Wooledge <wooledg@eeg.ccf.org>, bug-bash <bug-bash@gnu.org> |
| Envelope-to | bug-bash@gnu.org |
| User-Agent | Thunderbird |
| In-Reply-To | <20191218194651.GH851@eeg.ccf.org> |
| X-detected-operating-system | by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] |
| X-Received-From | 173.164.175.65 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <5DFD68B9.3050202@tlinx.org> |
| X-Mailman-Original-References | <9dd3a388-39b1-c059-de99-813f1e411764@case.edu> <5DF2987E.5000309@tlinx.org> <568aeaaa-22b3-c7b9-0e18-a92bef6d2ffb@iki.fi> <5DF2FE31.9070406@tlinx.org> <0ff3a920-94c2-b0c9-5631-0964955657aa@archlinux.org> <5DF3D78B.4090208@tlinx.org> <20191213184213.GO851@eeg.ccf.org> <5DF4BDF0.6000402@tlinx.org> <20191216163906.GV851@eeg.ccf.org> <5DFA7AE2.2060504@tlinx.org> <20191218194651.GH851@eeg.ccf.org> |
| Xref | csiph.com gnu.bash.bug:15765 |
Show key headers only | View raw
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 gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Unicode range and enumeration support. L A Walsh <bash@tlinx.org> - 2019-12-20 16:35 -0800
csiph-web