Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sh emulation POSIX non-conformances ("inf"/"Inf" in arithmetic expressions)
On Fri, Apr 23, 2021 at 7:13 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> Bart Schaefer wrote on Fri, 23 Apr 2021 23:34 +00:00:
> > Warning on -i/-F but not on simple scalar nor on array/hash is not
> > very useful
>
> Disagree.
There's room for that.
> Bart Schaefer wrote on Thu, 22 Apr 2021 21:25 +00:00:
> > The former warns spuriously if the user has no intention of ever
> > mentioning the variable in math context (or of ever using math at all).
>
> What's a use-case for declaring an *integer or float* variable that
> doesn't get ever get mentioned in math context?
I was (not clearly) using "spuriously" with an assumption that the
warning would apply to non-numeric type[def]s as well.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author