Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2022 09:42:50 +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-dc8nBgtbxx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262493-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262493-227@https.bugs.freebsd.org/bugzilla/>

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

Herbert J. Skuhra <herbert@gojira.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |herbert@gojira.at

--- Comment #1 from Herbert J. Skuhra <herbert@gojira.at> ---
This is no longer the case on main, stable/13 and releng/13.1.

https://cgit.freebsd.org/src/commit?id=3D44d4804d1945435745518cd09eb8ae6ab2=
2ecef4

% $ uname -r
13.1-STABLE
$ bc --version
bc 5.2.2
%  bc
1+2
3

Your options on releng/13.0 are:

- run bc with -P (alias?)
- rebuild world with WITHOUT_GH_BC=3Dyes
- build bc from usr.bin/bc
- Modify usr.bin/gh-bc/Makefile and rebuild gh-bc
--- a/usr.bin/gh-bc/Makefile
+++ b/usr.bin/gh-bc/Makefile
@@ -34,7 +34,7 @@ NLSSRCDIR=3D    ${BCDIR}/locales
 CFLAGS+=3D       -DMAINEXEC=3D${PROGNAME}
 CFLAGS+=3D       -DNLSPATH=3D/usr/share/nls/%L/%N.cat
 CFLAGS+=3D       -DBC_ENABLED
-CFLAGS+=3D       -DBC_ENABLE_PROMPT
+CFLAGS+=3D       -DBC_ENABLE_PROMPT=3D0

--=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-dc8nBgtbxx>