Unix and Linux Discussions Tagged with script |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
683 |
UNIX for Beginners Questions & Answers |
|
|
|
11 |
1,583 |
Shell Programming and Scripting |
|
|
|
7 |
2,179 |
Shell Programming and Scripting |
|
|
|
1 |
720 |
Shell Programming and Scripting |
|
|
|
3 |
3,299 |
Shell Programming and Scripting |
|
|
|
8 |
2,014 |
Shell Programming and Scripting |
|
|
|
2 |
1,746 |
Shell Programming and Scripting |
|
|
|
7 |
1,642 |
Shell Programming and Scripting |
|
|
|
1 |
1,508 |
Shell Programming and Scripting |
|
|
|
5 |
10,626 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
777 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,089 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
1,881 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
4,477 |
Shell Programming and Scripting |
|
|
|
4 |
15,853 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
803 |
Shell Programming and Scripting |
|
|
|
10 |
1,987 |
Shell Programming and Scripting |
|
|
|
10 |
10,645 |
Shell Programming and Scripting |
|
|
|
3 |
899 |
Shell Programming and Scripting |
|
|
|
3 |
1,073 |
Shell Programming and Scripting |
|
|
|
4 |
1,621 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
2,153 |
Shell Programming and Scripting |
|
|
|
4 |
973 |
Shell Programming and Scripting |
|
|
|
11 |
6,797 |
Shell Programming and Scripting |
|
|
|
7 |
25,520 |
Shell Programming and Scripting |
|
|
|
9 |
12,845 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
1,057 |
Shell Programming and Scripting |
|
|
|
5 |
3,760 |
Shell Programming and Scripting |
|
|
|
3 |
1,586 |
Shell Programming and Scripting |
|
|
|
0 |
1,073 |
Shell Programming and Scripting |
|
|
|
4 |
1,542 |
Shell Programming and Scripting |
|
|
|
1 |
1,296 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,710 |
Shell Programming and Scripting |
|
|
|
4 |
1,264 |
Shell Programming and Scripting |
|
|
|
1 |
2,401 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,223 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,154 |
Shell Programming and Scripting |
|
|
|
0 |
2,229 |
Homework & Coursework Questions |
|
|
|
1 |
1,425 |
Shell Programming and Scripting |
|
|
|
3 |
1,583 |
Shell Programming and Scripting |
Tcl_AllowExceptions(3) Tcl Library Procedures Tcl_AllowExceptions(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_AllowExceptions - allow all exceptions in next script evaluation
SYNOPSIS
#include <tcl.h>
Tcl_AllowExceptions(interp)
ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which script will be evaluated.
_________________________________________________________________
DESCRIPTION
If a script is evaluated at top-level (i.e. no other scripts are pending evaluation when the script is invoked), and if the script termi-
nates with a completion code other than TCL_OK, TCL_ERROR or TCL_RETURN, then Tcl normally converts this into a TCL_ERROR return with an
appropriate message. The particular script evaluation procedures of Tcl that act in the manner are Tcl_EvalObjEx, Tcl_EvalObjv, Tcl_Eval,
Tcl_EvalEx, Tcl_GlobalEval, Tcl_GlobalEvalObj, Tcl_VarEval and Tcl_VarEvalVA.
However, if Tcl_AllowExceptions is invoked immediately before calling one of those a procedures, then arbitrary completion codes are per-
mitted from the script, and they are returned without modification. This is useful in cases where the caller can deal with exceptions such
as TCL_BREAK or TCL_CONTINUE in a meaningful way.
KEYWORDS
continue, break, exception, interpreter
Tcl 7.4 Tcl_AllowExceptions(3)