Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multiple redirections and flushing



> Vincent Lefevre wrote:
> >For instance, if I don't use any redirection, I get one line after the
> >other in STDOUT, but if I redirect STDOUT like this
> >prg >results >&2
> >I only get the results when the program terminates.
> 
> That's up to the program, `prg' in this case.  All zsh does is open
> the file.  You might find the `script' command to be of some use, if
> you can't modify the program.

No, unfortunately it's a zsh problem.  Zsh opens a tee process but does not
waits for that.

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author