diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-09-28 15:26:44 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-09-28 15:26:44 +0000 |
commit | 81a331a3eaf81352b0f06a7b91f9ced73be04741 (patch) | |
tree | 62c9229d625c27e267441961d229bf8047792b27 /Functions/Exceptions/catch | |
parent | c3ca181fbe299b0f61885cc591fd7e1c01aee8f1 (diff) | |
download | zsh-81a331a3eaf81352b0f06a7b91f9ced73be04741.tar.gz zsh-81a331a3eaf81352b0f06a7b91f9ced73be04741.tar.xz zsh-81a331a3eaf81352b0f06a7b91f9ced73be04741.zip |
21779 plus unposted catch change: exception improvementss
Diffstat (limited to 'Functions/Exceptions/catch')
-rw-r--r-- | Functions/Exceptions/catch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Exceptions/catch b/Functions/Exceptions/catch index 5f3876228..6afd664da 100644 --- a/Functions/Exceptions/catch +++ b/Functions/Exceptions/catch @@ -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 |