Glenn Fowler <gsf@research.att.com> wrote, on 02 Jul 2009:
>
> what about this scenario
>
> in UTF-8 locale parent shell:
> glC<ck=bad
> export glC<ck
[Looks like your UTF-8 character got munged somewhere. I'm assuming
the C< was supposed to be a u-umlaut character.]
The shell should complain about the variable name. Quoting from
my first mail in this thread:
| There is a formal definition for "name" in this context:
|
| 3.230 Name
| In the shell command language, a word consisting solely of
| underscores, digits, and alphabetics from the portable character
| set. The first character of a name is not a digit.
Note the phrase "from the portable character set". Thus u-umlaut
is not a valid character in shell variable names.
--
Geoff Clare <g.clare@opengroup.org>
The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England
|