From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?utf-8?Q?Arsenovi=C4=87?= via Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists Newsgroups: gmane.emacs.tangents Subject: Re: [OT] Not clobbering bash history Date: Wed, 22 Nov 2023 22:50:29 +0100 Message-ID: <86il5te90a.fsf@aarsen.me> References: <87wmufm7r7.fsf@catern.com> <87fs12jkik.fsf@yahoo.com> <87ttphlqlo.fsf@catern.com> <87v89ujwa6.fsf@aarsen.me> Reply-To: Arsen =?utf-8?Q?Arsenovi=C4=87?= Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2971592200312539759==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40207"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, brickviking , sbaugh@catern.com, luangruo@yahoo.com, emacs-tangents@gnu.org To: Jens Schmidt Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Thu Nov 23 06:56:23 2023 Return-path: Envelope-to: get-emacs-tangents@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r62hL-000AF8-Bs for get-emacs-tangents@m.gmane-mx.org; Thu, 23 Nov 2023 06:56:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r62h5-0003PP-6e; Thu, 23 Nov 2023 00:56:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r5vOs-0001gc-2i for emacs-tangents@gnu.org; Wed, 22 Nov 2023 17:08:50 -0500 Original-Received: from mout-p-102.mailbox.org ([80.241.56.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1r5vOo-0004pV-IT; Wed, 22 Nov 2023 17:08:48 -0500 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:b231:465::1]) (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) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4SbFkc4PQWz9sjc; Wed, 22 Nov 2023 23:08:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1700690920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=i0h5OtnpYQnkT21hZd5GW/Pl7IRjXLqHoG0EZB9fM8k=; b=cfCo02BN0X9W3Rxzrnn4Sm5cQOoJUp0U1V7uidoA3hKXhbv8B5Uan5ARolHS7u23mycjEQ ONVUxkwS5vms5TW5fv6utA+S0Q8HGyPZwqpl/zhz0f88Hb3ZHE58Tkv70Y2vj52Uy8Fy1q g2zC/Y1nO5LMzRSKlcLicxfscGv/YyMgwRyxkXkScexrYLVRp0Mjv5SYEK7NT2TBTKeH94 l0nhtOqH+d3vtlNWHj31DDFWYksqjevgFW6VhrN8OVm76EgoF7wPR8u62p3A7p65pAO1Du kQQ3XZK+xKg6G8lpBXQc+aOoRlA1bvIqwMB+BIgUbnjihnP1Y7PBI54/mak6zA== In-reply-to: X-Rspamd-Queue-Id: 4SbFkc4PQWz9sjc Received-SPF: pass client-ip=80.241.56.152; envelope-from=arsen@aarsen.me; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 23 Nov 2023 00:56:01 -0500 X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Original-Sender: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.tangents:1127 Archived-At: --===============2971592200312539759== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jens Schmidt writes: > Moving to tangents ... please CC me. > > On 2023-11-22 04:32, Arsen Arsenovi=C4=87 wrote: > >>> Should we suggest that the Bash developer add a feature to handle this >>> case (multiple shells in parallel) the "right" way? If many users >>> would like it, that could make it worth building in. >>=20 >> That would be very nice. This issue has almost been prolific enough to >> force me to switch shells. > > This Bash-bashing made me curious, as I do not remember having issues > with loss of its history, ever. I do not partake in bash-bashing enthusiastically. I'm a big fan of readline and appreciate how reliable bash is. > And that without such tricks as using an ever growing history file. I > just use "shopt -s histappend" and 4096 lines as HISTFILESIZE. Plus I > close my Bashes orderly before shutting down. Plus I do not use Bash > from Emacs, only in "real" terminals. Eh, plus I rarely use nested > Bashes. > > So given all that, is there a reproducer for this? Unfortunately, I have been unable to produce a decent set of reproduction steps. This issue happens (relatively) infrequently and inexplicably on my machines. It pains me to complain without solid information. I also have shopt -s histappend set. I suspect that something starts a bash process and does not set histappend (--norc?), leading bash to override history. I wonder whether, in general, if bash (libhistory?) was written with the assumption of multiple processes writing to the history file, so that it keeps its history in sync with other bash processes, problems of this category would go away. =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZV575V8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTCRIBAP181L9pUcaDYDm1VG94KYWhEP8DdS58rNc4 yQUCtHCMAQCklz0/ZDjXZYC9wziTemFaqyJsl3Lpl5FkEamBfQyqAQ== =EmcP -----END PGP SIGNATURE----- --=-=-=-- --===============2971592200312539759== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0tCnZpYSBlbWFjcy10YW5nZW50cyBtYWlsaW5nIGxpc3QgKGh0dHBzOi8vbGlzdHMuZ251Lm9y Zy9tYWlsbWFuL2xpc3RpbmZvL2VtYWNzLXRhbmdlbnRzKQo= --===============2971592200312539759==--