Overview
| Artifact ID: | 52d2b12220018183747f9d9645db82fd0a104f9d |
|---|---|
| Ticket: | 219191ffffffffffffffffffffffffffffffffff
return in after script causes bogus bgerror |
| User & Date: | nobody on 2000-10-26 05:03:20 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2577 Bug Version: 8.0.5 SubmitDate: '1999-08-18' LastModified: '2000-04-03' Severity: SER Status: Assigned Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 3998 750 OS: Solaris OSVersion: 2.5.1 Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Tedd Hadley Comments: The reason for the error seems to be code in tclTimer.c AfterProc: result = afterPtr->command); if (result != TCL_OK) { Tcl_AddErrorInfo(interp, "\n (\"after\" script)"); Tcl_BackgroundError(interp); } Tcl_GlobalEval can, of course, return a value other than TCL_OK without it being TCL_ERROR -- TCL_RETURN in this case. I patched my version by changing the condition to if(result == TCL_ERROR). This may or may not be the right fix... ReproducibleScript: after 0 { return } update ObservedBehavior: return in an after script causes a fake error. DesiredBehavior: No error expected wish4.2 didn't complain, but 8.0+ does. -- 04/03/2000 hobbs - foundin changed to: "final: 8.0.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to: "return in after script causes bogus bgerror"
- type changed to: "Bug"