Closed crinklywrappr closed 2 years ago
The grammar was tightened up to avoid some ambiguities. Specifically, the definition of a bareword was changed. Commit 80e944be, 2021-01-12, introduced the ability to use characters not allowed in a bareword in a variable name by quoting the string. For example,
> put $'+~'
▶ <builtin +>
> var '+foo^' = foobar
> put $'+foo^'
▶ foobar
P.S., See also https://elv.sh/ref/language.html#variable-use
Prior to v0.15 I was able to do
Since then Elvish throws an error. In v0.18:
This still works for some builtins, though.