• Questions regarding the "unbuffer" program (Expect)

    From gazelle@gazelle@shell.xmission.com (Kenny McCormack) to comp.lang.tcl on Thu Sep 12 11:44:47 2024
    From Newsgroup: comp.lang.tcl

    /usr/bin/unbuffer has some constructs I'm not familiar with. Observe:

    1) set stty_init "-echo"

    What does this do? "stty_init" isn't used anywhere else. Is it some kind of magic built-in variable?

    2) eval [list spawn -noecho] [lrange $argv 1 end]

    Why use [list] here? Whenever I've needed to do this, I just do:

    eval spawn -noecho [lrange $argv 1 end]

    3) close_on_eof -i $user_spawn_id 0

    What is "close_on_eof"? I've never heard of it and can't find it any of
    the docs I checked.
    --
    The coronavirus is the first thing, in his 74 pathetic years of existence,
    that the orange menace has come into contact with, that he couldn't browbeat, bully, bullshit, bribe, sue, legally harrass, get Daddy to fix, get his siblings to bail him out of, or, if all else fails, simply wish it away.
    --- Synchronet 3.20a-Linux NewsLink 1.114