Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename sh-runtime var used to store strings
When arithmetic expansion is used to declare a variable, zsh types the variable as "integer" instead of "scalar". This is a problem when the variable is later assigned a string value, as zsh enforces the integer type and throws an error. ``` : $((__buf = 12)) # line 4: bad math expression: operator expected at `a', __buf has type"integer" print -rl -- ${(t)__buf} echo "__buf: $__buf =? 0123456789abcdef" __buf="0a" ```
- Loading branch information