From nobody Fri Dec 13 13:50:46 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y8rMV3fgGz5gbpg for ; Fri, 13 Dec 2024 13:50:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y8rMV24d7z4cqK for ; Fri, 13 Dec 2024 13:50:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734097846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=b2h6GorzJ1LGpKpuuEzsgE3yy2if/GOMIvXNfz/+Iho=; b=ReGIVJHXs1tfLraYk0140gQmGYd2gqR9WA0/mss+PRayRtx9QoC6evPyPIIqKa8KfrzGVd 78sCEPZi7ZaZ5mWEq7aP/KJf5EWj49qpmYq5CRn0EmUa4kBMP7G82yhtylslC/ZJeuHIq6 Nt4KO6iP3az8iiWbgMzNqFXBbrC6kV7qt7TFROapz5LkcfYZuon8ks+yiah+5yyJzLlPvu 2mCdBzE2WNDxTs5IVaLYoxjH3v/TY6wyx14WGk8rFyLFaUTze1/bWBhrHVgi8G4y6G3J5R JsU9JXhubH8imOj9nsRXsi4yGRx6QInvwSdd2QVuCMmGcwpf4WUFpbYH9U2lTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734097846; a=rsa-sha256; cv=none; b=jW+8bsLclLP7fCvy900v/WIQMnozVkNb3zFS/bHlRqH5+9HTNqifP38fqfkAr3U79TNu3D uRhyjpeTIUJO8u4mlLvzpryLUl32Ymm2q31P5JFFap217Az37EOdvyU6raX7sGmkq4nvPK 07oSG+h3DvdvEnZoTHQZzAEKdTBdG1RQGkU/NafbC32dYA46k/soazwxCKg2OAKQOL3TZl 0hCWCQTRSvYs/FieyRFdKQQuupB5Q1GhuwjZR7z+dZ203G5Hm2/Sx4W7RF0+AnAJEv0lBQ jF0gmiBQlg8MQjByGEvVy219k7OCRf/I2lvtdI86GUOpAdTRqFvTb6e8a0C94w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y8rMV1hS0zg3m for ; Fri, 13 Dec 2024 13:50:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4BDDokr4040671 for ; Fri, 13 Dec 2024 13:50:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4BDDokBK040670 for bugs@FreeBSD.org; Fri, 13 Dec 2024 13:50:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283310] /bin/sh history is not saved unless exit is used Date: Fri, 13 Dec 2024 13:50:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: justine@smithies.me.uk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283310 Bug ID: 283310 Summary: /bin/sh history is not saved unless exit is used Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: justine@smithies.me.uk sh only saves its history if you end the session with an explicit exit comm= and. If the sh session is closed via a signal (reboot, ssh connection drop/timeo= ut, terminal emulator closes tab/window, etc.) sh does not appear to save its history. I have tested this with others, we have set our HISTFILE and HISTSIZE so th= at's not the issue. I can recreate it by opening a foot terminal window in my river wayland compositor and entering a command. If I then type fc -l I see the command t= yped in the history. But if I close that window without typing exit and then ope= n a new terminal window all the history from that last terminal session is gone. The same happens via an ssh connection or if I close down my window manager, the history is lost. The only way to save the history is to type exit before closing the window. This issue doesn't just happen in a wayland compositor = it could be an X session too. I see this has been reported before but ignored due to lack of information. Hopefully I have provided enough info. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213705 --=20 You are receiving this mail because: You are the assignee for the bug.=