From cab7984a7c5951980176c1ed1af53db11e4ed1ec Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 9 Sep 2022 20:07:56 +0200 Subject: [PATCH] Explicitly CHANGELOG math division by zero behavior change --- CHANGELOG.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 19fa67b56..0bd714f12 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -52,7 +52,11 @@ Scripting improvements for a,b in y 1 z 3 ^~^ -- ``math`` now actually handles division-by-zero while computing and gives it a bespoke error, as well as augmenting some errors with their extent (:issue:`9190`). +- ``math`` now actually handles division-by-zero while computing and gives it a bespoke error, as well as augmenting some errors with their extent (:issue:`9190`). This changes behavior in some limited cases. E.g.:: + + math min 1 / 0, 5 + + would previously print "5" because in floating point division "1 / 0" yields infinite, and 5 is smaller than infinite. Instead, ``math`` will now error out. - Fish calls external commands via the given path again instead of always making it absolute. This can be seen e.g. when you run a bash script and check ``$0`` (:issue:`9143`). Interactive improvements