From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) by sourceware.org (Postfix) with ESMTPS id CB0F93858C2C for ; Wed, 23 Mar 2022 19:11:31 +0000 (GMT) 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 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-2e5969bdf31so28440647b3.8 for ; Wed, 23 Mar 2022 12:11:31 -0700 (PDT) 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 Date: Wed, 23 Mar 2022 15:11:20 -0400 Message-ID: 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2022 19:11:33 -0000 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