mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
21779 plus unposted catch change: exception improvementss
This commit is contained in:
parent
c3ca181fbe
commit
81a331a3ea
4 changed files with 12 additions and 5 deletions
|
|
@ -28,7 +28,7 @@
|
|||
function catch {
|
||||
if [[ $TRY_BLOCK_ERROR -gt 0 && $EXCEPTION = ${~1} ]]; then
|
||||
(( TRY_BLOCK_ERROR = 0 ))
|
||||
CAUGHT="$EXCEPTION"
|
||||
typeset -g CAUGHT="$EXCEPTION"
|
||||
unset EXCEPTION
|
||||
return 0
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue