Terminal output disappearing after SSH into cygwin
Thu Jan 21 18:13:56 GMT 2021
On 1/21/2021 12:28 PM, Takashi Yano via Cygwin wrote:
> On Thu, 21 Jan 2021 15:45:28 +0100
> Martyn B wrote:
>> - same behavior if I use "exit" or "logout".
>> "bash_logout" gives me "command not found"
>> - shell is /bin/bash on both sides
> What does "cat ~/.bash_logout" say?
>> - the command "cygcheck -c Cygwin" clears the local lines from
>> screen (1) immediately even _before_ exit
> This is normal behavior of cygwin 3.1.7.
> I doubt some non-cygwin program is automatically executed
> in ~/.bash_logout .
There's also /etc/bash.bash_logout. The default version of that clears the screen:
$ cat /etc/defaults/etc/bash.bash_logout
# base-files version 4.3-2
# /etc/bash.bash_logout: executed by bash(1) when login shell exits.
# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/bash.bash_logout
# Modifying /etc/bash.bash_logout directly will prevent
# setup from updating it.
# System-wide bashrc file
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear ] && /usr/bin/clear
More information about the Cygwin