Chet Ramey <chet.ramey@case.edu> wrote, on 02 Jul 2009:
>
> Giacomo A. Catenazzi wrote:
> > Geoff Clare wrote:
> >
> >> 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.
> >
> > "from the portable character set", but in which locale?
>
> The portable character set, by definition, is locale-independent.
Actually, there is a known issue about the possibility of
characters in the portable character set having different encodings
in different locales. It was raised back in March in relation
to the slash in pathnames, but it applies to other cases as well,
including this one.
See https://www.opengroup.org/austin/mailarchives/ag/msg18089.html
--
Geoff Clare <g.clare@opengroup.org>
The Open Group, Thames Tower, Station Road, Reading, RG1 1LX, England
|