mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
[math] Check for runtime errors
When number is infinite, not a number, larger than LONG_MAX or smaller than LONG_MIN, print a corresponding error and return STATUS_CMD_ERROR. This should fix the worst of the problems, by at least making them clear. Fixes #4479. Fixes #4768.
This commit is contained in:
@@ -17,7 +17,7 @@ The following options are available:
|
||||
|
||||
\subsection return-values Return Values
|
||||
|
||||
If the expression is successfully evaluated the return `status` is zero (success) else one.
|
||||
If the expression is successfully evaluated and doesn't over/underflow or return NaN the return `status` is zero (success) else one.
|
||||
|
||||
\subsection math-syntax
|
||||
|
||||
|
||||
Reference in New Issue
Block a user