[Bug 262493] bc has bad "prompt" for input, breaking 25+ years of FreeBSD behavior

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 11 Mar 2022 22:56:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262493

            Bug ID: 262493
           Summary: bc has bad "prompt" for input, breaking 25+ years of
                    FreeBSD behavior
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: obrien@FreeBSD.org

Up until FreeBSD 13.0, bc had no "prompt" for interactively entered math text.
This made it very easy to copy-n-paste using quick mouse clicks when one wanted
to reuse a math statement.

Now with 13.0, one cannot do that any longer due to very annoying leading ">>>"
text.

Pre-13.0:
$ bc
1+2+3+4+5+6+7
28
1+2+3+4+5+6+7 + 8
36

13.0:
$ bc
>>> 1+2+3+4+5+6+7
28
>>> >>> 1+2+3+4+5+6+7 + 8

Parse error: bad token
    <stdin>:2


I am aware of the fact that 13.0 changed from a 2010 BSDL bc (FreeBSD 9.0-12.2)
and that replaced GNU bc used since 1993 (FreeBSD 1.x-11.4).

However, since the Google SoC and GNU bc has behaved this way since
FreeBSD 1.0, their replacement should behave as close to expected
FreeBSD behavior as possible.

-- 
You are receiving this mail because:
You are the assignee for the bug.