From nobody Mon Sep 16 23:11:50 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 4X70zc5Phtz5WMqm for ; Mon, 16 Sep 2024 23:11:56 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from mail.macktronics.com (coco.macktronics.com [209.181.253.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X70zc3Mt3z4W2Y for ; Mon, 16 Sep 2024 23:11:56 +0000 (UTC) (envelope-from mack@macktronics.com) Authentication-Results: mx1.freebsd.org; none Received: from olive.macktronics.com (unknown [209.181.253.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.macktronics.com (Postfix) with ESMTPS id 9EA33F77; Mon, 16 Sep 2024 18:11:50 -0500 (CDT) Date: Mon, 16 Sep 2024 18:11:50 -0500 (CDT) From: Dan Mack To: Dennis Clarke cc: freebsd-current@freebsd.org Subject: Re: change in /usr/bin/bc with CTRL-d no longer exit In-Reply-To: Message-ID: <972cc399-2cf9-ada9-44c0-63816352ed86@macktronics.com> References: <1e614684-1cba-ef01-34dc-d9300db2d927@macktronics.com> <20240916141330.995C554A@slippy.cwsent.com> 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; format=flowed 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:209, ipnet:209.181.252.0/23, country:US] X-Rspamd-Queue-Id: 4X70zc3Mt3z4W2Y On Mon, 16 Sep 2024, Dennis Clarke wrote: > On 9/16/24 10:13, Cy Schubert 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. > > Here is some paint on the bikeshed : > > enceladus# uname -apKU > FreeBSD enceladus 15.0-CURRENT FreeBSD 15.0-CURRENT #0 > main-n271918-d7c87526b1c3-dirty: Mon Sep 2 09:55:54 UTC 2024 > root@enceladus:/usr/obj/usr/src/riscv.riscv64/sys/GENERIC riscv riscv64 > 1500023 1500023 > enceladus# > enceladus# bc -lq > scale=36 > a(1)*4 > 3.141592653589793238462643383279502884 > ^ D > ^ C > interrupt (type "quit" to exit) > ready for more input > quit > enceladus# > > Yep. That is borked. Hehe, 4*a(1) is one of my gotos as well for pi :-) Dan