Terminal output disappearing after SSH into cygwin

matthew patton pattonme@yahoo.com
Thu Jan 21 19:06:28 GMT 2021


On Thursday, January 21, 2021, 01:30:41 PM EST, Takashi Yano via Cygwin <cygwin@cygwin.com> wrote:
 
 
 On Thu, 21 Jan 2021 13:13:56 -0500
Ken Brown wrote:
> # when leaving the console clear the screen to increase privacy
> if [ "$SHLVL" = 1 ]; then
>    [ -x /usr/bin/clear ] && /usr/bin/clear
> fi

That should be the culprit. 
Is editing /etc/bash.bash_logout the right thing?

Yes. and furthermore REVERT that little cherry-bomb. Put the lines in and commented-out is fine. It's not OK to screw with people's environment like that.
  


More information about the Cygwin mailing list