<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Semi-understandable. The default system action for SIGWINCH is to do nothing; i.e. only programs that catch it are even aware of it. That would usually be programs like text editors that do full-window text handling, and probably need to re-fetch the current size and redraw on window size change.<br class=""><div><br class=""></div><div>Makes me wonder if they're using libncurses or something like it, but not using it properly.</div><div><br class=""></div><div>From sigaction(2) on Monterey, the signals that do nothing by default (although in the case of SIGCHLD at least, ignoring it is a bit different from the default):</div><div><br class=""></div><div><div>     SIGURG          discard signal          urgent condition present on socket</div><div>     SIGCONT         discard signal          continue after stop</div><div>     SIGCHLD         discard signal          child status has changed</div><div>     SIGIO           discard signal          I/O is possible on a descriptor</div><div>     SIGWINCH        discard signal          Window size change</div><div>     SIGINFO         discard signal          status request from keyboard</div><div><br class=""></div><div>I'm not seeing the problem on Ventura, which uses the Gavin Howard bc (if perhaps not the same version as on Sonoma, which I don't have).</div></div><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 11, 2024, at 10:37, Bill Cole <<a href="mailto:macportsusers-20171215@billmail.scconsult.com" class="">macportsusers-20171215@billmail.scconsult.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><div class="plaintext" style="white-space: normal; caret-color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><p dir="auto" class="">On 2024-08-11 at 03:08:11 UTC-0400 (Sun, 11 Aug 2024 02:08:11 -0500)<span class="Apple-converted-space"> </span><br class="">Ryan Carsten Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>><span class="Apple-converted-space"> </span><br class="">is rumored to have said:</p><blockquote style="margin: 0px 0px 5px; padding-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(119, 119, 119); color: rgb(119, 119, 119);" class=""><p dir="auto" class="">On Aug 11, 2024, at 00:03, Richard L. Hamilton wrote:</p><blockquote style="margin: 0px 0px 5px; padding-left: 5px; border-left-width: 2px; border-left-style: solid; border-left-color: rgb(153, 153, 153); color: rgb(153, 153, 153);" class=""><p dir="auto" class="">The MacPorts version uses MacPorts supplied libraries (other than libSystem). The macOS version uses macOS supplied libraries. (ultimately from the same open source projects, but potentially different versions and build options, so not identical code)</p></blockquote><p dir="auto" class="">It's *not* the same software. MacPorts has GNU bc 1.07 which is licensed GPL-3. macOS used to have GNU bc 1.06 released back in 2000 under GPL-2. Apple has switched to someone else's bc implementation in recent macOS probably because as we know Apple is allergic to GPL-3.</p></blockquote><p dir="auto" class="">The macOS bc is Gavin Howard's version which is also used in FreeBSD. It integrates both the GNU additions to the POSIX-standard bc and its own additions, some of which came from the original BSD bc. There has been a steady trickle of bug fixes since the version Apple ships on Sonoma, some of which reference macOS.</p><p dir="auto" class="">Looking at the man page, I'd bet that exiting when the terminal geometry changes is understandable, since making that change sends a WINCH signal and bc resets on signals for which it has no handler. That gap seems like a bug to me, but one to report to the author or Apple.</p><br class=""></div><div id="391C2EDB-51F2-44BE-8BBE-77E1377A3737" style="caret-color: rgb(0, 0, 0); font-family: sans-serif; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><pre class="">   <a href="mailto:bill@scconsult.com" class="">bill@scconsult.com</a> or <a href="mailto:billcole@apache.org" class="">billcole@apache.org</a>
   (AKA @<a href="mailto:grumpybozo@toad.social" class="">grumpybozo@toad.social</a> and many *@billmail.scconsult.com addresses)
   Not Currently Available For Hire
</pre></div></div></blockquote></div><br class=""></body></html>