From owner-freebsd-hackers Sun Oct 15 00:10:18 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA07926 for hackers-outgoing; Sun, 15 Oct 1995 00:10:18 -0700 Received: from csc.canberra.edu.au (csc.canberra.edu.au [137.92.1.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id AAA07913 for ; Sun, 15 Oct 1995 00:10:08 -0700 Received: from student.canberra.edu.au by csc.canberra.edu.au (5.65/1.35) id AA00870; Sun, 15 Oct 95 17:09:27 +1000 Received: by student.canberra.edu.au (5.x/SMI-SVR4) id AA19920; Sun, 15 Oct 1995 17:09:23 +1000 Date: Sun, 15 Oct 1995 17:09:22 +1000 (EST) From: "Gasparovski / Daniel (ISE)" To: Warner Losh Cc: hackers@freebsd.org Subject: Re: IPX now available Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk > : % bg >& make.out > : [1]+ make world & > : % > : > : Hurrah, the output is now redirected to make.out! > > I'd give half my left kidney for something like this! (Pure software > already had my right kidney) Why can't this be done in the shell? eg: have the shell fork off the process, give it a pty as controlling terminal which will be handled by the shell, and by default show it's output on the user's tty. Then, if a "bg >& make.out" is given, have the shell open make.out and start writing the output there instead of the tty. It's not the most ideal solution, for example "ls" won't do the right thing, but it's good enough for most, if not all, situations. Your best bet would be to make such a suggestion to the zsh mailing list, since zsh is a wonderfully rich shell which can already handly things like echo spam > file1 > file2 (which also needs shell intervention), and it's still actively being developed by a very talented pool of programmers. Dan ... [ Danny Gasparovski | Mortified by the lack of conscience ] [ u923168@student.canberra.edu.au | Our sanctity bears no relevance ] [ University of Canberra, Australia | Insignificant is our existence ] [ Bolt Thrower, "The IVth Crusade" -> | Hear the litany of life's persistence ]