From 81a331a3eaf81352b0f06a7b91f9ced73be04741 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 28 Sep 2005 15:26:44 +0000 Subject: 21779 plus unposted catch change: exception improvementss --- Functions/Exceptions/catch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/Exceptions/catch') 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 -- cgit 1.4.1