Terminal occasionally shows duplicate command text when it is split over multiple lines

C Linus Hicks linush@mindspring.com
Tue Aug 24 01:20:10 GMT 2021


On Mon, 2021-08-23 at 21:52 +0000, Ray Satiro via Cygwin wrote:
> I'm using cygwin x86 updated yesterday and when I paste in commands that are split over multiple lines sometimes an arbitrary line will show more than once, even though it is not actually part of the command more than once. For example here's a command:
> 
> echo foo \bar \baz \qux
> 
> And here's the terminal output when I paste it in:
> 
> $ echo foo \qux
> > bar \> baz \> quxfoo bar baz qux
> 
> $ echo foo \baz \> bar \> baz \> quxfoo bar baz qux
> 
> My terminal is mintty 3.5.0 (i686-pc-cygwin). I'm not sure if this is a cygwin issue or mintty issue.
> 

I have seen this before too, but from my experience, only the display of the text is incorrect, what
ends up in the buffer accurately reflects what you pasted. It's just an artifact of the way
characters are read and echoed. If you recall the text from your command history, is it correct?




More information about the Cygwin mailing list