1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

48601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.

Not tested.
This commit is contained in:
Daniel Shahaf 2021-04-16 18:04:39 +00:00
parent 4202c0bbe3
commit a23f19bfbd
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2021-05-18 Daniel Shahaf <d.s@daniel.shahaf.name>
* 48601/0005: Functions/Misc/zmathfuncdef: Fix the workers/48147
return status / 'set -e' bug.
* 48601/0004: Doc/Zsh/builtins.yo: docs: return: Give examples
of using arithmetic evaluation.

View file

@ -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