1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-22 16:20:23 +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

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