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 90E553858426 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net Subject: Re: Terminal occasionally shows duplicate command text when it is split over multiple lines To: cygwin AT cygwin DOT com 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> From: Thomas Wolff Message-ID: Date: Wed, 25 Aug 2021 15:46:10 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <18ff5a94-b771-9534-7202-0057ff22679a@yahoo.com> X-Provags-ID: V03:K1:XC0tZk/P2jr7GNZlhoTxKSiKDstQ54t4dhnfggLxaXYg6LNT0Mm wsoKpog3ZVzghMtJUY4V6/SFoXOhVGx7968dn6XEOeqOJy53RYOlZdOjoE17tgLShr0PIrP t2837mAdPEHieYNA/rOlIAbt8M56InYsGI9KDhW97hE9LztXh6pg6ko3gZo3FBxdTpheISr sxsUAL/5jqH5qjfgAVR0Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:aYqDT6lVuXw=:m7tdS1FmNES2nAifohyLua Q6hNwcv8ht7C8X6S3tiL3V3XSlDCwlt8dtji3LqyXxe51HbjIkYl6PRFtcU710JKgMHNl7KrH +B/f3T11R+PSfuc9jYpvXrsXb2rwMgQQM3N17l7kOLJq5iz/IH/KK5GyKnlC7oI2YiX5LhAX3 OnhGX97CCtfIPbJG2+WiCx2a06TLgasW+hmastE/cP88tb/B5sJWaOomZWFA+6M98djd0iRvf jHAt/7dw6LViUOa+r8GismjBGTgjOa90x+Oy+o8jFSVOfyhCBhmXyNsHRiXgKegWVw7H/a80V Wl78sO+Jf5N5QbgLAmpSmVn9cyGlNYu9JUUf32YfdnPIxcOZyt+g5Xc1OPAKQARKh14zCa72w gaRHSR0hjiEaEg9j7mSxhnbp4K2Xq6G1gskstaHworv7uuHgW0TuRP0e0zsq4R7ARnFhMpe2A /MFaEy2VjC4ZZmO/xXGUUQFosLzayPMRyHMx1Qt+gUbTAEMBpK4ue/UHfXUTHIqF8id2Qp9iz h3iJp5rv3pdfWjsxyzhBe9JDWAIyO420CJ/25IubEyHPSy5m6B2tXtsDN3xTTDrrFf5Udau/A YabxMpXx5JNCX4bUDGI+aaeDeB/8KMoSMQjiPKuNPKkXlJc+Bs8bKtim1733FjO1R4LbFeVES 08RefFYuKAc+OijTCtY7WGR/i75jLu3fu/1gMEgz88CLHP7Y4yzaHopCOA0L410XxGZ6qSTPs KgwNnIFHpE3CvgrPU9beE4aAi3r6FqsU2Pa5Zg== X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Am 25.08.2021 um 08:42 schrieb Ray Satiro via Cygwin: > On 8/23/2021 6:15 PM, Thomas Wolff wrote: >> Am 23.08.2021 um 23:52 schrieb Ray Satiro via Cygwin: >>> 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 >> Please provide a clear test case. How exactly would your clipboard >> have multiple lines? Your example is only one line. > > 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. Thomas -- 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