Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: sh emulation POSIX non-conformances ("inf"/"Inf" in arithmetic expressions)



On Sat, Apr 24, 2021 at 4:03 PM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> both for the behavior and documentation, be careful with the
> locales, in particular in Turkish ones. I don't know whether
> this is expected in zsh, but...
>
> zira% zsh -fc 'export LC_ALL=fr_FR.utf8; echo $((Inf)) $((inf))'
> Inf Inf
> zira% zsh -fc 'export LC_ALL=tr_TR.utf8; echo $((Inf)) $((inf))'
> Inf 0

schaefer[856] ls -ld /usr/share/i18n/locales/tr_TR
-rw-r--r-- 1 root root 168368 Dec 16 03:04 /usr/share/i18n/locales/tr_TR
schaefer[857] Src/zsh -fc 'export LC_ALL=tr_TR.utf8; echo $((Inf)) $((inf))'
Inf Inf

??




Messages sorted by: Reverse Date, Date, Thread, Author