mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 05:10:28 +02:00
48601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.
Not tested.
This commit is contained in:
parent
4202c0bbe3
commit
a23f19bfbd
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2021-05-18 Daniel Shahaf <d.s@daniel.shahaf.name>
|
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
|
* 48601/0004: Doc/Zsh/builtins.yo: docs: return: Give examples
|
||||||
of using arithmetic evaluation.
|
of using arithmetic evaluation.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ if ! zmodload -e zsh/mathfunc; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
eval "$fname() { (( $body )) }"
|
eval "$fname() { (( $body )); true }"
|
||||||
} always {
|
} always {
|
||||||
# Remove math function if shell function definition failed.
|
# Remove math function if shell function definition failed.
|
||||||
if (( TRY_BLOCK_ERROR )); then
|
if (( TRY_BLOCK_ERROR )); then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue