From nobody Mon Sep 16 15:01:38 2024 X-Original-To: freebsd-current@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 4X6p5x3Hxqz5WDP7 for ; Mon, 16 Sep 2024 15:01:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X6p5x2kjRz4DXZ for ; Mon, 16 Sep 2024 15:01:41 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; none Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTPS id qBDJse32A9TOUqDESs3fT1; Mon, 16 Sep 2024 15:01:40 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id qDERsPOcP2M9qqDESsKEKu; Mon, 16 Sep 2024 15:01:40 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=ce5xrWDM c=1 sm=1 tr=0 ts=66e84854 a=y8EK/9tc/U6QY+pUhnbtgQ==:117 a=y8EK/9tc/U6QY+pUhnbtgQ==:17 a=kj9zAlcOel0A:10 a=EaEq8P2WXUwA:10 a=l4imHnecAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=eLhjS8NOXSWKliKtggIA:9 a=CjuIK1q_8ugA:10 a=7rubtdGElOUA:10 a=-FEs8UIgK8oA:10 a=6ChPCWoJjFK9ZelAJ1Ia:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 0AC77B9; Mon, 16 Sep 2024 08:01:39 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id F12CF10E; Mon, 16 Sep 2024 08:01:38 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.8+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Warner Losh cc: Cy Schubert , FreeBSD Current Subject: Re: change in /usr/bin/bc with CTRL-d no longer exit In-reply-to: References: <1e614684-1cba-ef01-34dc-d9300db2d927@macktronics.com> <20240916141330.995C554A@slippy.cwsent.com> Comments: In-reply-to Warner Losh message dated "Mon, 16 Sep 2024 15:53:03 +0100." List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 16 Sep 2024 08:01:38 -0700 Message-Id: <20240916150138.F12CF10E@slippy.cwsent.com> X-CMAE-Envelope: MS4xfHOkE/kZxnSFBxugtH2v39LLxWI8Ha74UCWRsAat1N20jpsYHmujjQ1XXdjJc867vyyy8PyesoJ0mWLLSipBxWbg1Y9fDLWcX4ivA4Dweu1A139wf2Eq Vi9aBB9vp309f2Gw85EKe16xnGQnSqFafHECWSVsW0vEqtt6rkkP5DVB5atrCGTem5LTtd2KGpYobWNo2qLr6otAr5tmCzQQc855Ev5HHJc+t4f2ds2+i6Y7 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US] X-Rspamd-Queue-Id: 4X6p5x2kjRz4DXZ In message , Warner Losh writes: > --0000000000008d472706223dbb34 > Content-Type: text/plain; charset="UTF-8" > Content-Transfer-Encoding: quoted-printable > > On Mon, Sep 16, 2024, 3:13=E2=80=AFPM Cy Schubert m> wrote: > > > In message , void writes: > > > On Sun, Sep 15, 2024 at 03:16:46PM -0500, Dan Mack wrote: > > > >On 14.1 and prior, a CTRL-d will exit a bc session. > > > > > > > >Today I noticed that on 3 different 15-CURRENT systems, it appears to > > > >be ignored. Works fine otherwise and I can exit the bc session with > > > >the 'quit' command okay. > > > > > > > >I re-tested this on the system console on fresh login just to rule out > > > >any terminal madness. > > > > > > > >Here's a paste of what I see: > > > > > > > >https://tpaste.us/VYya > > > > > > > >I did a fresh install of 14.1 and it works as it did previously. > > > > > > > >No biggie, just wondering if anyone else on -CURRENT can confirm/deny > > > >this change on their system. > > > > > > [void@vm5 ~ ] uname -KU > > > 1400504 1400504 > > > [void@vm5 ~ ] echo 2+2 | bc -l > > > 4 > > > > > > [void@vm3 ~ ] uname -KU > > > 1500023 1500023 > > > [void@vm3 ~ ] echo 2+2 | bc -l > > > 4 > > > > Of course the above works because the regression only affects tty users. > > bc(1) now ignores EOF on the terminal while the above still works. You ca= > n > > circumvent this by putting "export BC_TTY_MODE=3D0" into your .profile. T= > he > > side effect is that line editing will no longer work. > > > > The irony here is that i fixed thus very bug 2 or 3 years ago. > > Warner > It's curious (or maybe not) how some bugs keep returning with a time and time again. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0