delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/08/27/06:20:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1BD693857C60
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1630059601; bh=yTrD8uJQj68xBpcA8ict9az4Oz4EKuaACoEkZuqm3O4=;
h=In-Reply-To:Subject:To:Message-ID:From:References:Date:Reply-To;
b=tb4q06R6W0R8NPDga2U2GvAWnM0er0ND+N1GWN+/UfYICECkWhhX3hxo0oRO827fU
IWnzNGizVUftFG6ArgIu/Dj6pH+i70QGz9gX+i6cQ+w3tPjn7KZDM2sbvnm0zpvAXk
QHaQpUvj2Bwo/5dLNoPSiPMnYRVtUVw+vaILGb84=
Authentication-Results: myt6-b9434eefd3a9.qloud-c.yandex.net;
dkim=pass header.i=@yandex.ru
Date: Fri, 27 Aug 2021 13:18:36 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1677102027.20210827131836@yandex.ru>
To: Thomas Wolff <towo AT towo DOT net>, cygwin AT cygwin DOT com
Subject: Re: Terminal occasionally shows duplicate command text when it is
split over multiple lines
In-Reply-To: <d032825c-4691-3e7d-538e-f6509cc95fe3@towo.net>
References: <1966566714 DOT 1219564 DOT 1629755526730 DOT ref AT mail DOT yahoo DOT com>
<1966566714 DOT 1219564 DOT 1629755526730 AT mail DOT yahoo DOT com>
<5dc677a0-85c8-7850-0a71-d1a2fa7c6e07 AT towo DOT net>
<18ff5a94-b771-9534-7202-0057ff22679a AT yahoo DOT com>
<d032825c-4691-3e7d-538e-f6509cc95fe3 AT towo DOT net>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, Thomas Wolff!

>> My mail client did that. Here I'll try again:
>>
>> echo foo \
>> bar \
>> baz \
>> qux
>>
>>
>> $ echo foo \
>> baz \
>> qux
>>> bar \
>>> baz \
>>> qux
>> foo bar baz qux
>>
>>
> Cannot reproduce this with mouse-pasting (middle mouse button). It does 
> occur occasionally when pasting with Shift+Insert at keyboard repeat 
> rate. I guess it's some kind of race condition, the initial part may get 
> output earlier than the further parts are echoed. So it would not be a 
> terminal issue.

Similar issue can be sometimes observed when you only start terminal and begin
typing before the program (i.e. shell) is ready to accept input.
Some characters will appear before the shell prompt (in example), and repeated
in the prompt like you would expect.

So, this is indeed a race condition between terminal and the program running
in it, but a harmless one.


-- 
With best regards,
Andrey Repin
Friday, August 27, 2021 13:16:32

Sorry for my terrible english...


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019