Tcl Source Code

View Ticket
Login
Ticket UUID: 2920003
Title: chan push does not return the documented value
Type: Bug Created on: 2009-12-23 12:12:25
Submitter: sbron Assigned to: andreas_kupries
Subsystem: 24. Channel Commands Severity: Minor
Priority: 5 Medium Last modified: 2026-10-14 15:31:50
Status: Open Closed by:
Resolution: None Closed on:
Version: 8.6.18, 9.0.5, 9.1.0
Description:
According to both the chan and the transchan manual page [chan push] is supposed to return the transformation handle. Instead it returns the channel.

The attached patch makes the code behave as documented. I have also tried to patch the tests. But the threaded tests are skipped on my system, so chances are these will not all be correct.
User Comments:
sbron added on 2009-12-23 19:12:26:

File Added - 356247: chanpush.patch

sbron added on 2010-01-19 04:31:12:
After playing with stacked channels a bit more and starting to understand better how they work, I've come to the conclusion that it's probably the documentation that should be corrected, not the code.

serhiy.storchaka added on 2026-10-14 15:31:28:

Same as [7b0e690b70]. Proposed fix in branch doc-chan-push-result: chan.n and transchan.n are corrected, as you suggested.


Attachments: