delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/22/08:18:52

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.3.2 sourceware.org AA9E338930EC
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=stefanist.com
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=mb AT stefanist DOT com
Subject: (SOLVED) Re: Terminal output disappearing after SSH into cygwin
To: cygwin AT cygwin DOT com
References: <644c7c45-b1a5-8c9f-8d6d-70b99a06c378 AT stefanist DOT com>
<d1aee930-43e0-e405-c094-2a4545ca09b5 AT gmail DOT com>
<9072877f-c67d-5767-7a58-274abecfecbf AT stefanist DOT com>
<190171158 DOT 2668557 DOT 1611244936009 AT mail DOT yahoo DOT com>
<9a0ce80d-fcdb-9f07-788c-c157a2de8535 AT SystematicSw DOT ab DOT ca>
<279a917b-7053-3ce8-c071-9c2a959341fa AT gmail DOT com>
From: Martyn B <mb AT stefanist DOT com>
Message-ID: <a48cb731-20d5-44ab-8ee5-51e87a461113@stefanist.com>
Date: Fri, 22 Jan 2021 14:18:03 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <279a917b-7053-3ce8-c071-9c2a959341fa@gmail.com>
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, SPF_NONE,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 10MDIXYb022541

On 2021-01-21 11:13, Ken Brown via Cygwin wrote:
> There's also /etc/bash.bash_logout.  The default version of that 
> clears the screen:
...
 > # when leaving the console clear the screen to increase privacy
 > if [ "$SHLVL" = 1 ]; then
 >     [ -x /usr/bin/clear ] && /usr/bin/clear
 > fi


Takashi Yano via Cygwin wrote on 21.01.21 19:30:
 >
 > That should be the culprit.
 > Is editing /etc/bash.bash_logout the right thing?
 >

Yes that's the solution as I own both machines.

Thanks to all, also for the additional information:

https://sourceware.org/pipermail/cygwin/2021-January/247574.html
https://sourceware.org/pipermail/cygwin/2021-January/247581.html
https://sourceware.org/pipermail/cygwin/2021-January/247584.html

Cheers
Martyn
--
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