Re: RFE: Please allow unicode ID chars in identifiers
From:
Chet Ramey
Subject:
Re: RFE: Please allow unicode ID chars in identifiers
Date:
Tue, 13 Jun 2017 15:30:36 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
On 6/4/17 3:45 AM, dualbus wrote:
> I know I said I wasn't going to reply, but this changed my mind :-)
>
> I hadn't realized that bash already supports Unicode in function names!
When not in Posix mode, bash doesn't really have any restrictions on
characters that can be used in function names. It's basically the same
namespace as external commands, with a few exceptions (no dollar signs,
no quoted strings, no all-digit names). You can even name a function
`/bin/true' and call it, as long as you quote the slashes. With so few
restrictions, there's nothing to supporting locale-specific function
names -- they're just a string of bytes.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/