Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-04-06
02:26 • Closed ticket [536879ffff]: subst & var subst exceptions plus 7 other ... artifact: 475a934896 user: dgp
2002-04-05
15:57 • Ticket [536879ffff]: 5 changes artifact: 760b2268f2 user: dkf
2002-03-30
02:38 • Ticket [536879ffff]: 4 changes artifact: 0468725f19 user: dgp
02:38 • Add attachment subst.patch to ticket [536879ffff] artifact: 155e997a97 user: dgp
2002-03-29
19:38 • New ticket [536879ffff] subst & var subst exceptions. artifact: 72d77fe516 user: dgp

[subst] & var subst exceptions

Closed / Fixed536879ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-29 19:38:56
[subst] does not handle exceptions in variable
substitutions correctly.

% list [catch {subst {a[break]b}} msg] $msg $errorInfo
  0 a {}
  % list [catch {subst {a$foo([break])b}} msg] $msg
$errorInfo
  1 {} {
      while executing
  "subst {a$foo([break])b}"}

Here's a patch to fix the problem including new
tests.
dgpplain2002-03-30 02:38:56
File Added - 20286: subst.patch
dkfplain2002-04-05 15:57:14
Logged In: YES 
user_id=79902

Seems OK to me; feel free to commit. (Do you feel that the
current docs describe the new behaviour? If not, also update
them.)
dgpplain2002-04-06 02:26:32
Logged In: YES 
user_id=80530

commited to HEAD (8.4a5).

Will deal with doc improvements in Bug 536838
Log in (anonymous is fine) to add a comment.

Attachments: