bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: read -e deletes extra characters


From: Greg Wooledge
Subject: Re: read -e deletes extra characters
Date: Tue, 24 Mar 2015 08:11:23 -0400
User-agent: Mutt/1.4.2.3i

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

[Prev in Thread] Current Thread [Next in Thread]