Sujet : Re: Initiate command in another shell session?
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 14. Mar 2025, 19:40:25
Autres entêtes
Message-ID : <slrnvt8u0p.1opm.naddy@lorvorc.mips.inka.de>
References : 1 2
User-Agent : slrn/1.0.3 (FreeBSD)
On 2025-03-13, Keith Thompson <Keith.S.Thompson+
u@gmail.com> wrote:
On some systems, opening a tty and calling ioctl(fd, TIOCSTI, ptr),
where ptr is a char*, will cause the single character *p to appear
as if it had been typed.
I associate TIOCSTI with csh(1)'s filename expansion feature, but
a look at the BSD history shows that the introduction of the ioctl
precedes the csh feature there by three years--1980 and 1983,
respectively.
This might not work for a tty other than
the current stdin, and it's started requiring root access in recent
Ubuntu releases.
OpenBSD has dropped TIOCSTI completely a number of years ago.
*checks history* Functionality neutered in 2017, removed in 2018.
"Due to risks known for decades", says the commit message.
-- Christian "naddy" Weisgerber naddy@mips.inka.de