X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CB0F93858C2C
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=mozilla.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=mozilla.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mozilla.com; s=google;
 h=mime-version:from:date:message-id:subject:to;
 bh=PMCCpKWaB1JRCVDMJ8K1FmcbXuwCdSrU+8SsplxY2Sc=;
 b=ZNqV+EtBTrDfZyZn8XzCdd+9eXSrfhwGpVRtv/s2Z5WqpphaXGGZGmsZI8BmDIZ0Ww
 OWC8Tx25S5NVfgAHFLEfhUeaNu4KgBvNCQlzI4rjgrVGLP8FPzY5G/zJmw3irmL5Lfpz
 VmtzHyYH++C/VhLRx88V/wy1wAjFyZmFpoRY0=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=PMCCpKWaB1JRCVDMJ8K1FmcbXuwCdSrU+8SsplxY2Sc=;
 b=H7r/HeIM7F6nqKd1J1fZpQcitQKmmQjm2wTgqple66IXOQj1YJGtiF4Y4aNPQ+H0MG
 yjaWYHZs6X5WQkq6/MTABFJRjmdZB2isdw2dtImsQw0/6QCVC6D7EvUm3zliNn6Y5cKM
 2DlOhzqGidh1E+08QWEifszvivlJgpSla4Utbd/kycin8bJWDqGHoNoeQ1VoHviZe3IE
 5d6oq7TWI3VGlQLLw4Lc2KZeFLLDSSg6nne38w2T0QXBPEbaSAnB0BjSk+gWfLP+rZDS
 8/mj7jLnRjYpMqqTjY7UV+tO8mts/Z7zlQ0HYveTeyTJnfSONKJ8/IMpE5Dd+aDR4fAf
 IcvQ==
X-Gm-Message-State: AOAM532ZiZZC57zcjZJShIIjVY7NJ9vdGfaKMNqY5JMhLGekT4qqG9bD
 PVi4ye/CAj0v+lRIFQ8rI6vCH0vuEWdH+rk6aKfMuEfEKL4=
X-Google-Smtp-Source: ABdhPJx4gJB5WmcWlqFSXej/Cv8G1pGUeyvSpijX4hUjejPHw+oxYDRoOxWqNUU195TGc951L0YWtZeuzeTikTm5kFM=
X-Received: by 2002:a81:344b:0:b0:2e5:c304:c608 with SMTP id
 b72-20020a81344b000000b002e5c304c608mr1446215ywa.275.1648062690933; Wed, 23
 Mar 2022 12:11:30 -0700 (PDT)
MIME-Version: 1.0
From: Mitchell Hentges <mhentges@mozilla.com>
Date: Wed, 23 Mar 2022 15:11:20 -0400
Message-ID: <CAAvot88cUyx4g6d09B8-XKB4C1of0JgX2-31iMr1Em9+s-o35Q@mail.gmail.com>
Subject: Closing the Command Prompt using the "x" button doesn't update shell
 history file
To: cygwin@cygwin.com
X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

To reproduce the issue:
1. Run Cygwin.bat to open a Cygwin shell in the "Command Prompt" terminal
2. Run some command, such as "echo test"
3. Click the Windows "x" button in the top-right corner of the terminal

The terminal closes, but `$HOME/.bash_history` is not updated to include
the "echo test" command.
Interestingly, when using mintty, the shell history is indeed saved when
the "x" button is pressed.

-- 
Mitchell Hentges
Engineering Workflow
Mozilla

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