1
0
Fork 0
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:
Peter Stephenson 2005-09-28 15:26:44 +00:00
parent c3ca181fbe
commit 81a331a3ea
4 changed files with 12 additions and 5 deletions

View file

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