bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 20:14:52 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 6/13/17 5:19 PM, address@hidden wrote:
> 
> In that case, the answer is simple:
> 
> The shell swiftly rejects the script, and provides a clear reason why
> it cannot be run. ("bash: Script requires the en_US.utf8 locale which
> is not installed on this system. Sorry, dude.")

The shell has no business doing this. If a script requires a certain
locale, and won't run correctly without it, the author can ensure that
an assignment to LC_CTYPE produces the desired results.

> This is also why I think this should be an optional "encoding marker"
> at a fairly fixed location in the file, rather than an option setting
> that could occur anywhere in the script: It allows an incompatible
> script to be immediately identified and rejected before it does
> anything.

This is relatively trivial to do with a shell function.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]