[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: self join from stdin
From: |
Andreas Schwab |
Subject: |
Re: feature request: self join from stdin |
Date: |
Sun, 20 Oct 2019 15:21:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
On Okt 20 2019, Nomen Nescio <address@hidden> wrote:
> Do you think the following coproc solves the problem?
> A join or paste prints expected results.
> Curiously cat or tac will block the process.
> Can you explain why join/paste finish the process whereas cat/tac block it?
Because join and paste simultanously read both files, whereas cat and
tac read one file after the other. Then tee blocks on stdout because
nobody drains the pipe buffer.
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."