Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Oct 1995 17:09:22 +1000 (EST)
From:      "Gasparovski / Daniel (ISE)" <u923168@student.canberra.edu.au>
To:        Warner Losh <imp@village.org>
Cc:        hackers@freebsd.org
Subject:   Re: IPX now available
Message-ID:  <Pine.SOL.3.91.951015170014.19078A-100000@student.canberra.edu.au>

next in thread | raw e-mail | index | archive | help


> : % 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  ]




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.91.951015170014.19078A-100000>