You just miss the exec command
set output [exec man cmd-name]
When you execute set out [man cmd-name]in an interactive tcl session, the command unknownintercepts the "man" command and implicitly executes exec on it. In this scenario, the person somehow knows that you are interactive and presses manpage through your $ PAGER.
source
share