On Tue, Mar 24, 2015 at 06:54:14AM +0100, isabella parakiss wrote:
> The problem is when I pipe that to a program that prints a prompt.

> In the examples, the prompt will be a $ and it will be printed by the
> second program in the pipeline.

There is no way readline (or whatever the first command in the pipeline
is) can know that *some other program* has written characters to the
terminal.  Or how many, or how big, or what terminal attributes may
have changed, etc.  Letting two programs simultaneously modify the
terminal is going to lead to chaos.

Reply via email to