| delorie.com/archives/browse.cgi | search |
| 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 DFA3C3864858 |
| 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: | Re: Terminal output disappearing after SSH into cygwin |
| To: | cygwin AT cygwin DOT com |
| References: | <644c7c45-b1a5-8c9f-8d6d-70b99a06c378 AT stefanist DOT com> |
| <20210121221353 DOT 5eff1e02be701518f81fd3b8 AT nifty DOT ne DOT jp> | |
| <20210121222948 DOT 2e0044acb6d7475328f56ae2 AT nifty DOT ne DOT jp> | |
| From: | Martyn B <mb AT stefanist DOT com> |
| Message-ID: | <e606608b-cab9-8e80-76b8-eb924f377787@stefanist.com> |
| Date: | Thu, 21 Jan 2021 15:45:28 +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: | <20210121222948.2e0044acb6d7475328f56ae2@nifty.ne.jp> |
| X-Spam-Status: | No, score=-0.9 required=5.0 tests=BAYES_00, KAM_ASCII_DIVIDERS, |
| KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, 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> |
Takashi Yano via Cygwin wrote on 21.01.21 14:29:
> Takashi Yano via Cygwin <cygwin AT cygwin DOT com> wrote:
>>
>> Please update cygwin to 3.1.7.
>
> Sorry, I might misunderstand your problem.
>
> Does your problem happen when you exit from ssh session to cygwin?
> If so, are you using ~/.bash_logout (for bash) or ~/.logout (for tcsh)?
>
Thanks for asking.
Cygwin version is 3.1.7 now
This is exactly what happens:
-------------------------------------------------
(1) Screen looks like this:
-------------------------------------------------
martyn AT linuxbox:~$ echo local command 1
local command 1
martyn AT linuxbox:~$ echo local command 2
local command 2
martyn AT linuxbox:~$ ssh Winuser@<remote IP>
-------------------------------------------------
hit RETURN
-------------------------------------------------
(2) Screen looks like this:
-------------------------------------------------
martyn AT linuxbox:~$ echo local command 1
local command 1
martyn AT linuxbox:~$ echo local command 2
local command 2
martyn AT linuxbox:~$ ssh Winuser@<remote IP>
Last login: Thu Jan 21 14:52:35 2021 from <local IP>
Winuser AT WINDOWS-BOX ~
$ echo I want to keep this output
I want to keep this output
Winuser AT WINDOWS-BOX ~
$ vim /home/Winuser/editing-testtext.txt
Winuser AT WINDOWS-BOX ~
$ ls /home/Winuser/editing-testtext.txt
/home/Winuser/editing-testtext.txt
Winuser AT WINDOWS-BOX ~
$ exit
-------------------------------------------------
hit RETURN
-------------------------------------------------
(3) Screen looks like this:
-------------------------------------------------
Connection to <remote IP> closed.
martyn AT linuxbox:~$ echo all lines are gone
all lines are gone
martyn AT linuxbox:~$
-------------------------------------------------
ADDITIONAL INFORMATION
-------------------------------------------------
- same behavior if I use "exit" or "logout".
"bash_logout" gives me "command not found"
- shell is /bin/bash on both sides
- the command "cygcheck -c Cygwin" clears the local lines from
screen (1) immediately even _before_ exit
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |