about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2021-04-16 18:04:39 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2021-05-18 02:01:13 +0000
commita23f19bfbd8c4d7e0a452232659b733bf882474f (patch)
tree77be85a53add11caa588437de03edadda81d392f /Functions
parent4202c0bbe35fbdc2c93b4bfe97dfe52db1b0331e (diff)
downloadzsh-a23f19bfbd8c4d7e0a452232659b733bf882474f.tar.gz
zsh-a23f19bfbd8c4d7e0a452232659b733bf882474f.tar.xz
zsh-a23f19bfbd8c4d7e0a452232659b733bf882474f.zip
48601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.
Not tested.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Misc/zmathfuncdef2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Misc/zmathfuncdef b/Functions/Misc/zmathfuncdef
index e5692e769..5ed991f68 100644
--- a/Functions/Misc/zmathfuncdef
+++ b/Functions/Misc/zmathfuncdef
@@ -78,7 +78,7 @@ if ! zmodload -e zsh/mathfunc; then
 fi
 
 {
-  eval "$fname() { (( $body )) }"
+  eval "$fname() { (( $body )); true }"
 } always {
   # Remove math function if shell function definition failed.
   if (( TRY_BLOCK_ERROR )); then