Date: Mon, 16 Sep 2024 15:53:03 +0100 From: Warner Losh <imp@bsdimp.com> To: Cy Schubert <Cy.Schubert@cschubert.com> Cc: FreeBSD Current <freebsd-current@freebsd.org> Subject: Re: change in /usr/bin/bc with CTRL-d no longer exit Message-ID: <CANCZdfpe86cZeabqAvpo-q1OtYxLggo7s9rZkreFKX=PqA=Ojw@mail.gmail.com> In-Reply-To: <20240916141330.995C554A@slippy.cwsent.com> References: <1e614684-1cba-ef01-34dc-d9300db2d927@macktronics.com> <ZudpAKZS7JgS9ZZ_@int21h> <20240916141330.995C554A@slippy.cwsent.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Mon, Sep 16, 2024, 3:13 PM Cy Schubert <Cy.Schubert@cschubert.com> wrote: > In message <ZudpAKZS7JgS9ZZ_@int21h>, 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. > The irony here is that i fixed thus very bug 2 or 3 years ago. Warner > -- > Cheers, > Cy Schubert <Cy.Schubert@cschubert.com> > FreeBSD UNIX: <cy@FreeBSD.org> Web: https://FreeBSD.org > NTP: <cy@nwtime.org> Web: https://nwtime.org > > e^(i*pi)+1=0 > > > > [-- Attachment #2 --] <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2024, 3:13 PM Cy Schubert <<a href="mailto:Cy.Schubert@cschubert.com">Cy.Schubert@cschubert.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In message <ZudpAKZS7JgS9ZZ_@int21h>, void writes:<br> > On Sun, Sep 15, 2024 at 03:16:46PM -0500, Dan Mack wrote:<br> > >On 14.1 and prior, a CTRL-d will exit a bc session.<br> > ><br> > >Today I noticed that on 3 different 15-CURRENT systems, it appears to <br> > >be ignored. Works fine otherwise and I can exit the bc session with <br> > >the 'quit' command okay.<br> > ><br> > >I re-tested this on the system console on fresh login just to rule out <br> > >any terminal madness.<br> > ><br> > >Here's a paste of what I see:<br> > ><br> > ><a href="https://tpaste.us/VYya" rel="noreferrer noreferrer" target="_blank">https://tpaste.us/VYya</a><br> > ><br> > >I did a fresh install of 14.1 and it works as it did previously.<br> > ><br> > >No biggie, just wondering if anyone else on -CURRENT can confirm/deny <br> > >this change on their system.<br> ><br> > [void@vm5 ~ ] uname -KU<br> > 1400504 1400504<br> > [void@vm5 ~ ] echo 2+2 | bc -l<br> > 4<br> ><br> > [void@vm3 ~ ] uname -KU<br> > 1500023 1500023<br> > [void@vm3 ~ ] echo 2+2 | bc -l<br> > 4<br> <br> Of course the above works because the regression only affects tty users. <br> bc(1) now ignores EOF on the terminal while the above still works. You can <br> circumvent this by putting "export BC_TTY_MODE=0" into your .profile. The <br> side effect is that line editing will no longer work.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">The irony here is that i fixed thus very bug 2 or 3 years ago.</div><div dir="auto"><br></div><div dir="auto">Warner </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> -- <br> Cheers,<br> Cy Schubert <<a href="mailto:Cy.Schubert@cschubert.com" target="_blank" rel="noreferrer">Cy.Schubert@cschubert.com</a>><br> FreeBSD UNIX: <cy@FreeBSD.org> Web: <a href="https://FreeBSD.org" rel="noreferrer noreferrer" target="_blank">https://FreeBSD.org</a><br> NTP: <<a href="mailto:cy@nwtime.org" target="_blank" rel="noreferrer">cy@nwtime.org</a>> Web: <a href="https://nwtime.org" rel="noreferrer noreferrer" target="_blank">https://nwtime.org</a><br> <br> e^(i*pi)+1=0<br> <br> <br> <br> </blockquote></div></div></div>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpe86cZeabqAvpo-q1OtYxLggo7s9rZkreFKX=PqA=Ojw>
