54313: convfloat: use consistent capitalisation for NaN, Inf, and -Inf

makes `typeset -p` use the same capitalisation as arithmetic expansion
This commit is contained in:
dana
2026-04-13 10:58:58 -05:00
parent f7769ad632
commit 08e48ea8b6
4 changed files with 24 additions and 1 deletions

View File

@@ -1177,3 +1177,12 @@ F:This is a bug, the non -h variable should not hide the autoload variable
>z=SRANDOM (zsh/random)
>z=
>v=
() {
typeset -F f1=nan f2=inf f3=-inf
typeset -p f1 f2 f3
}
0:float NaN/Inf output formatting
>typeset -F f1=NaN
>typeset -F f2=Inf
>typeset -F f3=-Inf