Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.