From nobody Mon Sep 16 14:13:30 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 4X6n2R5ydPz5W65X for ; Mon, 16 Sep 2024 14:13:35 +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 4X6n2Q1TCGz41xj for ; Mon, 16 Sep 2024 14:13:34 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=quarantine) header.from=cschubert.com; spf=pass (mx1.freebsd.org: domain of cy.schubert@cschubert.com designates 3.97.99.32 as permitted sender) smtp.mailfrom=cy.schubert@cschubert.com Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTPS id q6nUsduDA9TOUqCTts3WTZ; Mon, 16 Sep 2024 14:13:33 +0000 Received: from spqr.komquats.com ([70.66.152.170]) by cmsmtp with ESMTPSA id qCTrsjnxSGvSVqCTssZhEK; Mon, 16 Sep 2024 14:13:33 +0000 X-Auth-User: cschuber X-Authority-Analysis: v=2.4 cv=FpSm/Hrq c=1 sm=1 tr=0 ts=66e83d0d 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=2OJ_YJKkji78tvjLqEQA: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 0D2BF31F5 for ; Mon, 16 Sep 2024 07:13:31 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 995C554A; Mon, 16 Sep 2024 07:13:30 -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: freebsd-current@freebsd.org Subject: Re: change in /usr/bin/bc with CTRL-d no longer exit In-reply-to: References: <1e614684-1cba-ef01-34dc-d9300db2d927@macktronics.com> Comments: In-reply-to void message dated "Mon, 16 Sep 2024 00:08:48 +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 07:13:30 -0700 Message-Id: <20240916141330.995C554A@slippy.cwsent.com> X-CMAE-Envelope: MS4xfDcgyx5pRhU6LOZm5HAlzKZwWGGTsr1hbFRei7AHRWWUo+fr52xlWUGwMgFI3akDUVD8Oh66B/xSbKhBm+MgrX1/ObRE78MFI1AcEFyULH7zgpwzsAzl WKsfA4NDqJj7iVrFEZKsvoi5YIgKI7FyVsDPuhVnJ4fPWbWZXmJlgSqVbiCwrZgU1RVKrsQY0LRvSwcwAruib6PmIKogLW4bT+o= X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.27 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.67)[-0.674]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cschubert.com,quarantine]; R_SPF_ALLOW(-0.20)[+ip4:3.97.99.32/31]; RWL_MAILSPIKE_VERYGOOD(-0.20)[3.97.99.32:from]; RCVD_IN_DNSWL_LOW(-0.10)[3.97.99.32:from]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[4]; REPLYTO_EQ_FROM(0.00)[] X-Rspamd-Queue-Id: 4X6n2Q1TCGz41xj 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 can circumvent this by putting "export BC_TTY_MODE=0" into your .profile. The side effect is that line editing will no longer work. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org e^(i*pi)+1=0