Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/12/84; site desint.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!whuxlm!akgua!sdcsvax!sdcrdcf!trwrb!desint!geoff From: geoff@desint.UUCP (Geoff Kuenning) Newsgroups: net.unix-wizards Subject: Re: shell preprocessor for history & alias Message-ID: <295@desint.UUCP> Date: Tue, 8-Jan-85 00:49:37 EST Article-I.D.: desint.295 Posted: Tue Jan 8 00:49:37 1985 Date-Received: Fri, 11-Jan-85 23:43:17 EST References: <6986@brl-tgr.ARPA> Organization: his home computer, Manhattan Beach, CA Lines: 30 In article <6986@brl-tgr.ARPA> cottrell@nbs-vms.ARPA writes: >okay, bizarre idea time. how about >writing a filter that only does aliases & history & pipes the transformed >output to sh! so far so good, *but* then interactive progs like vi (yes, >its in sys v) won't run because they attempt to do ioctl/stty on a pipe. >this means i have to save the stdin fd & exec vi directly. any suggestions, >comments? maybe i can get a rise out of chris@md on this one. This is easy to do if you have pseudo-tty's. My machine has these even though I don't have networking (this is a fortuitous side effect), and I normally run my normal tty through a program that talks to 4 pseudo-tty's (poor man's job control). It would not be hard to replace it with a fancy screen-oriented guy that managed windows, kept history, and the whole bit, for all terminal interactions. One advantage of this sort of approach is that tty settings become associated with the subject process, rather than the tty. After all, why should my cat's be screwed up just because I ran vi? And why should vi have to go to a lot of work to put the tty back the way cat wants it, every time I send it a SIGTSTP? One problem is the massive-input problem: When I am editing, I *don't* want history (the features of a good editor are much more useful than a history of edit commands), and I most certainly don't want my two hours of entering code to wipe out my command history. -- Geoff Kuenning ...!ihnp4!trwrb!desint!geoff