catch {rename unknown {}}
catch {rename unknown.old unknown}
+catch {rename bar {}}
if {[info command testdel] == "testdel"} {
test rename-4.1 {reentrancy issues with command deletion and renaming} {
proc incr {} {puts "new incr called!"}
catch {x} msg
set msg
-} {called "incr" with too many arguments}
+} {wrong # args: should be "incr"}
if {[info commands incr.old] != {}} {
catch {rename incr {}}
}
::tcltest::cleanupTests
return
-