Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

The secret source of humor is not joy but sorrow; there is no humor in Heaven. -- Mark Twain


comp / comp.lang.tcl / Questions regarding the "unbuffer" program (Expect)

SubjectAuthor
o Questions regarding the "unbuffer" program (Expect)Kenny McCormack

1
Subject: Questions regarding the "unbuffer" program (Expect)
From: Kenny McCormack
Newsgroups: comp.lang.tcl
Organization: The official candy of the new Millennium
Date: Thu, 12 Sep 2024 11:44 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.tcl
Subject: Questions regarding the "unbuffer" program (Expect)
Date: Thu, 12 Sep 2024 11:44:47 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <vbuk7f$1t0jr$2@news.xmission.com>
Injection-Date: Thu, 12 Sep 2024 11:44:47 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="1999483"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
View all headers

/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.

1

rocksolid light 0.9.8
clearnet tor