Sujet : Re: Initiate command in another shell session?
De : naddy (at) *nospam* mips.inka.de (Christian Weisgerber)
Groupes : comp.unix.shellDate : 15. Mar 2025, 15:38:45
Autres entêtes
Message-ID : <slrnvtb47l.2hht.naddy@lorvorc.mips.inka.de>
References : 1 2 3 4
User-Agent : slrn/1.0.3 (FreeBSD)
On 2025-03-14, Kaz Kylheku <
643-408-1753@kylheku.com> wrote:
I associate TIOCSTI with csh(1)'s filename expansion feature, but
>
Seriously? Is this what I think it is: that csh tromboned out characters
to the TTY driver to get the OS to type in the expansion as if the user
typed it?
I think so. The key here is that csh does not implement a command
line editor. It relies on the cooked mode processing of the standard
tty line discipline. It needs to feed the expansion results in
there as if they had been typed, so actions like character/word/line
erase can be performed.
Wow, ... I see considering only csh *programming* to be harmful was
an overly optimistic view.
static char *sccsid = "@(#)file.c 1.1 (Berkeley from Hp Labs) 11/02/83";
/*
* Tenex style file name recognition, .. and more.
* History:
* Author: Ken Greer, Sept. 1975, CMU.
* Finally got around to adding to the Cshell., Ken Greer, Dec. 1981.
*/
-- Christian "naddy" Weisgerber naddy@mips.inka.de