[Bug 262493] bc has bad "prompt" for input, breaking 25+ years of FreeBSD behavior
Date: Sat, 12 Mar 2022 09:42:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262493
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=44d4804d1945435745518cd09eb8ae6ab22ecef4
% $ 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=yes
- 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= ${BCDIR}/locales
CFLAGS+= -DMAINEXEC=${PROGNAME}
CFLAGS+= -DNLSPATH=/usr/share/nls/%L/%N.cat
CFLAGS+= -DBC_ENABLED
-CFLAGS+= -DBC_ENABLE_PROMPT
+CFLAGS+= -DBC_ENABLE_PROMPT=0
--
You are receiving this mail because:
You are the assignee for the bug.