summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2026-04-08 22:11:25 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2026-04-08 22:11:25 +0900
commitb421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4 (patch)
treecdfff71ee58a607e79c4979b6fc55d4755338323
parent54319: turn off AUTO_NAME_DIRS option in completion (diff)
downloadzsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar.gz
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar.bz2
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar.lz
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar.xz
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.tar.zst
zsh-b421af0e3e7ee87b6e1ba97e3b3ebf45bd8885b4.zip
54295: document that floating point exceptions are ignored
-rw-r--r--ChangeLog5
-rw-r--r--Doc/Zsh/arith.yo2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c2b17eaf0..b97bb269a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2026-04-08 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+ * 54295: Doc/Zsh/arith.yo: document that floating point
+ exceptions are ignored
+
2026-04-08 Mikael Magnusson <mikachu@gmail.com>
* 54319: Completion/compinit: turn off AUTO_NAME_DIRS option
diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo
index 9f5298821..f8807eb4a 100644
--- a/Doc/Zsh/arith.yo
+++ b/Doc/Zsh/arith.yo
@@ -25,6 +25,8 @@ arithmetic expansion performed as for an argument of tt(let). More
precisely, `tt(LPAR()LPAR())var(...)tt(RPAR()RPAR())' is equivalent to
`tt(let ")var(...)tt(")'. The return status is 0 if the arithmetic value
of the expression is non-zero, 1 if it is zero, and 2 if an error occurred.
+Floating point exceptions (division by zero, overflow, etc.) are ignored and
+not considered as errors.
For example, the following statement