Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2022 22:56:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262493] bc has bad "prompt" for input, breaking 25+ years of FreeBSD behavior
Message-ID:  <bug-262493-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262493

            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 te=
xt.
This made it very easy to copy-n-paste using quick mouse clicks when one wa=
nted
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-1=
2.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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262493-227>