>>>>> On Thu, 30 Jan 2014, Jeroen Roovers wrote: >> It may be little known, but strictly speaking, hyphens in bash >> identifiers are illegal: >> >> `name' A `word' consisting solely of letters, numbers, and >> underscores, and beginning with a letter or underscore. `Name's are >> used as shell variable and function names. Also referred to as an >> `identifier'.
> That looks wrong for all kinds of reasons and it is directly
> contradicted in the same document and in the source code.
Sure, the implementation is so sloppy that it would even allow
^+-=[*]{@}:,./?%!!!11eleven!! as the name of a function. Which doesn't
imply that we should use such undocumented features in our code.
Ulrich
pgp3OAtvcBW7w.pgp
Description: PGP signature
