Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-10-09
15:48 • Ticket [2bf561854c] interp alias to command whose name is the empty string s... artifact: 091440a7cc user: dkf
2016-10-03
14:54 • Closed ticket [2bf561854c]. artifact: 041965d571 user: jan.nijtmans
14:53
(cherry-pick): Fix [2bf561854c55a], interp alias to command whose name is the empty string. check-in: d121af2108 user: jan.nijtmans tags: core-8-6-branch
01:10
Fix [2bf561854c55a], interp alias to command whose name is the empty string. check-in: e1a24d5c88 user: pooryorick tags: trunk
00:24 • New ticket [2bf561854c] interp alias to command whose name is the empty string</... artifact: fede8100e3 user: pooryorick

interp alias to command whose name is the empty string

Closed / Fixed2bf561854c55a002af49d446d5133e71c133d610Created 10 years agoUpdated 10 years ago
Descriptionwiki2016-10-03 00:24:03
set interp [interp create [info cmdcount]]
interp eval $interp {
	proc {} args {return $args}
}
interp alias {} p1 $interp {}
p1 one two three ;# -> alias "p1" not found

The command incorrectly interpreted as an instruction to delete the alias.

jan.nijtmanswiki2016-10-03 14:54:30

Agreed, this is indeed strange. Backported to core-8-6-branch as well.

dkf Ticket [2bf561854c]: 5 changes [History diff]2016-10-09 15:48:33
Log in (anonymous is fine) to add a comment.