From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28765 invoked from network); 5 Oct 2022 22:41:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Oct 2022 22:41:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665009663; b=ImJUAj4gGv61AD9u+U10K0caeRxg4YRcOj2rwQ8KXzgrq40T1ib88vGuYuxdVgBYekflHe1SGD 6/aeBwTYeIXzGuY+TcQz8mXLSnhpBQsJiiodl8HQq14nb1+5z03ZfbSh9PF1JXrsPA8XPYrmjt /XVtN6G/HIx/vNN+Xbvgu+hyojCAYwPYi+/WsFwTXUAudKuN4bAo6K0EBmIxF+dNKxkDcyp8l3 OhE004O4LfXKwhD51yjoDbSwObSjhv78+RzcL59iNtW8Ly+AHosG/qRuKjV4+fJKmsogWHfN7G mMFegp3Y93UVnW4YR1N3rK7CcmokNTObqbkCPpPzh2EXVQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665009663; bh=cb5+JxDlM2kij4qVcuXc3dzSw22rFqdm8FGL6nbym+w=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ocmFvbLs/SbXWDfPpaoU+nfMWVzuG+Hn1p4pZoYqFW63D6dteesx07UWQ4Ldi1Kjgmo8iuAz08 pEikVxyo/GGhuJr2FD+u4mDkm5a5O5LLwCzHSXYtrfR1N9rwPv4mqncBp1R+AS/Ln5OUC9ZrlC xnZ1StPjfjMH4XS5Tx3z9WuOMwSNPw0wykAWgFpvxm5eS5Xse5QgSwBhDjYGuCBJDy3bRnwmHA a32qvsI4eb4tY90f7sVw/EZAG7uKdDGQ0MP4F7ze9zltRPVkZKaJn9VrJb8C0LzxAUFTic4SUm vmN9pmBgb3jiDpEp7RvumQ8M2z6S3wphsH+8p4N+42r3eg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=uAXnQH5WnJML+Jz0y8WwKV/xH1T0eutYCxfO1B+bSqM=; b=W6RGr1yO0zXF3mCK5tA6aveUwJ Fa56XpmhFtERz6o8KP2Slf7htSvBsm9juZjIKsNG+BhjzVYS9YLB5dO5jreIS8QYMh1k9fYWTAIpn pEhwDl4NMPhg+kDNyULv/iuuNLFBTHDCjaYfqadQ3y3d/2ZxkKJVe6qEaNmoqtN2nZiq0MPfDTN6R KS/tm/0w+MMRK8aGzJyIFfHccHQTZvdu9fX7H+its/4NSwSR0WkwZZdFIuSzRYAEb8GnZ08z+/9JE 12RIQ+TDuAJ/MZ8zII9CBLBbbdAiznJTLZhOV3YTZxnP4gqBlAgYyAp6oDF9zlhOp4hXW0zwS1QPL MKjWe5vQ==; Received: from authenticated user by zero.zsh.org with local id 1ogD4Z-0003DI-Bl; Wed, 05 Oct 2022 22:41:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f49.google.com ([209.85.218.49]:34366) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ogCv9-0002HM-Eo; Wed, 05 Oct 2022 22:31:20 +0000 Received: by mail-ej1-f49.google.com with SMTP id ot12so792716ejb.1 for ; Wed, 05 Oct 2022 15:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=uAXnQH5WnJML+Jz0y8WwKV/xH1T0eutYCxfO1B+bSqM=; b=CByHszuDRiBVLC5nrAvrUkLluCrWAKEK6egELVh2bB3VcfdxewKIxgdmE5Nf8aPSVr 1Rud8xCiz2ysqRMrTygTUAwrIGOoqr9Ny+3l+8VPEB+xbHFg0Cds6D7Ns6HgIvae3okX ccudOSwQ0IhnAyqakNr5sBb9lWr44RZctwRDnMcAsP0mPSjLsUA3CB0FTUnWGrkRc7FN 0q4btl6zjzJ8onisXaFPsNIKDH1xePncl72xlPIEwB8n6Ly+I4/Ee968WeC98JyUd99L oqslgnGiT6ZX7+hzFy9lxa8mf77Y/hAcnShJwRRP4YUPtxtwrY4lLdK3nUn3y6TjowFX /rjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uAXnQH5WnJML+Jz0y8WwKV/xH1T0eutYCxfO1B+bSqM=; b=aaPqzhg/DqMBFbbPa3xyuaSbDFDWRRbqD2XnDIDd2ZOj+Vy/S8ipURWFRXDz2ePDrV ocDgDpFpbpsNj3ECeOveLd+uWp5bTno/NEfRBWMUFKvXDq13kpy4+qFl+dbml+1Zkb4P +1CwU3rZkSncZQdv6en4Rgndj/4qYTq8UsJBAMZ/ZewDESjMyb7fZEMzL2HJEPdzLd59 Th+O7Fwz/RqLRyAcRJ6FJz4e43MZDXs4P448/pHHcZRjNIl4+R+SIcWlYBJm9OaBIa9K SlAjeEpL5YZB7L2cdmuvX0myOi9Je6ZatfyiRy0iFq9RuU42K3nocGN58GnfcPsB8BfC 7Oiw== X-Gm-Message-State: ACrzQf2j111Ta6RQTM5SluVgWkZWZUmFDYhF+ZhmCCXMYsy51A66Tkz9 u8XLUjYFKWifSARR1PbxqbrnQMCw0XsjF/14f0r2Vg== X-Google-Smtp-Source: AMsMyM4Ik7mljIBSWsbuNkPoCHNWiiKIdIypyDyQX8+d036LKaMFTimE6l+Ilr11awpr8GkP/gFW9lDy3IYy/jHbyB4= X-Received: by 2002:a17:906:8a46:b0:781:7171:74d0 with SMTP id gx6-20020a1709068a4600b00781717174d0mr1474716ejc.214.1665009079069; Wed, 05 Oct 2022 15:31:19 -0700 (PDT) MIME-Version: 1.0 References: <50fa26c9-98aa-1fc7-6bc5-f552a1f450f3@protonmail.com> In-Reply-To: From: Bart Schaefer Date: Wed, 5 Oct 2022 15:31:07 -0700 Message-ID: Subject: Re: Bug: Losing .zsh_history To: dominik.vogt@gmx.de, zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28180 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Wed, Oct 5, 2022 at 2:24 PM Dominik Vogt wrote: > > On Wed, Oct 05, 2022 at 09:05:44PM +0000, Wesley wrote: > > > > This might be interesting to read: > > https://unix.stackexchange.com/a/273869 > > Interesting. Somethig like that is the most likely culprit: The filesystem has allocated space for the buffered content to be written out, but cutting the power brings the system down before the buffer is flushed to disk. This is most often seen on "soft-mounted" NFS filesystems that use delayed writes, but it's certainly possible to happen locally on abrupt loss of power. If avoiding FS lossage is important enough to you, you might try getting a battery power supply unit and configure the power daemon to do an orderly shutdown if the PS switches to battery. Then instead of powering off the machine, unplug the PS. If the problem merely seems to be that a shell you can't see has started up and is trying to update the history when it shuts down, you could add something to .zlogin to make a backup copy of the history when the shell starts. The circumstances you've described are odd, though, because I wouldn't expect a shell to have any opportunity to begin processing its shutdown when power is cut. If the same problem that causes the blank display has already killed the shell, there may be a connection between the failing display and failing disk operations.