Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2025-04-02
11:14 • New ticket [fb9acd64a5] effect of close affects parent interp in specific case</... artifact: 21b94f8384 user: anonymous

effect of close affects parent interp in specific case

Openfb9acd64a5b76e0e1fba607b7c3eebd0f33dab0aCreated 2 years agoUpdated 2 years ago
Descriptionmarkdown2025-04-02 11:14:03
[interp create] eval {close stdout}
puts "hello"

fails with: can not find channel named "stdout"

Any kind of channel operation before the interp make it work as excepted:

puts "start"
[interp create] eval {close stdout}
puts "hello"

Even accessing no-existing channels:

catch {fconfigure dummy}
[interp create] eval {close stdout}
puts "hello"

Maybe related to this: https://core.tcl-lang.org/tcl/tktview/5338d8e82

Log in (anonymous is fine) to add a comment.