delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/01/22/11:17:32

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 3B548389365F
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo AT towo DOT net
From: Thomas Wolff <towo AT towo DOT net>
Subject: 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>
Message-ID: <d564b1a9-8428-0c78-296a-65fe927385bc@towo.net>
Date: Fri, 22 Jan 2021 17:16:36 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.6.1
MIME-Version: 1.0
In-Reply-To: <279a917b-7053-3ce8-c071-9c2a959341fa@gmail.com>
X-Provags-ID: V03:K1:0pC8X9IRVkoXqqrMYWXft0pSsj2Z43X4k0Lz6baGCCakOqjPPSf
Gtu4VZudyFVLL1GxPUq8Suag0X4mV9nNsE6fFSnAzsfXdUTC6goGijsyGGSbStlvY/vcQsl
kjeBywXfk+DFhm3YrnbDgnuZoZk+JGpZRS9Z4SLWytNmhZVQh4tI3iqobMyPLYTfIDud66G
kSyTZp839MojDjxkXY8Ng==
X-UI-Out-Filterresults: notjunk:1;V03:K0:EInHksXHqb0=:h3bG2gQ2bQxIdc6KWRcBUX
tZOLIJRm3AQpq2IPGhmlhRTs2Tq0JhVG75RHIM0vkx/SLbsP9R1/d1oG6zVthyY7xbZBz9N7G
ouM4RC9jeoZpC+QQftrhMoGmapQdaNVrEBLmcEojdQc2J7H+XHs/9985TaMAEDxGAmnwDSdjZ
J39yiofH7xGmO/I/8BsveB9I5p00+tnXGtiixfa1BxHhIB7zVwOxUPyrW5xFvhT4siEbyziBd
kIOopDQ85VV+lu5Wrd6kA7OU/6hUmZR4Crm4IXy1yaa50DqrLc224Y7TItFYdfuMUnE/iy2Yi
B0UXp6rqkbqlacg+j8sJ/r7fy9zxw7+zWiiwe6b/JGG5gJOQYtH1+uHdhrchalJbn+sX+k3t0
K63XangytzjeQ1hON+F3R8Dlohg71TbG24hPSPg6mg4izTDTvAcJkkwc+9PZb
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, 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 10MGHDZx011257

[somehow my previous response did not go to the list]

Am 22.01.2021 um 12:10 schrieb Marco Atzeri via Cygwin:
> On 22.01.2021 09:16, Brian Inglis wrote:
>> On 2021-01-21 09:02, matthew patton via Cygwin wrote:
>>> On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B wrote:
>>>> 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:
>>>>>
>
>>
>> Whether it should be is a good question.
>>
>> There's no /etc/bash_logout file under Debian, etc. but 
>> /etc/skel/.bash_logout and ~/.bash_logout also have the same clear 
>> screen code.
>>
>> Is (or was) /etc/bash.bash_logout that did this in the bash sources 
>> or under Fedora, which is the Linux basis for some Cygwin approaches, 
>> behaviour, and conventions?
>>
>
>
> $ cygcheck -l base-files |grep logout
> /etc/defaults/etc/bash.bash_logout
>
> the defaults is copied as
>    /etc/bash.bash_logout
> only if it was not modified.
>
> The file is there by at least 2016, so not a new implementation
The clear is conditional. Maybe the value of $SHLVL after ssh login has 
changed somehow?

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