Bug 267051 - bc: Back-arrow cannot reach first character
Summary: bc: Back-arrow cannot reach first character
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Stefan Eßer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-14 14:02 UTC by Jason W. Bacon
Modified: 2023-08-02 06:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2022-10-14 14:02:23 UTC
When using the left arrow key to back up in a bc statement, we cannot reach the first character.  When the cursor is over the 2nd character and the left arrow is pressed, the cursor jumps to the end of the line instead of moving left.
Comment 1 Gavin D. Howard 2022-10-14 14:36:51 UTC
Ouch.

This bug has already existed before, so let me take a look at exactly what version is in 13.1-RELEASE.
Comment 2 Gavin D. Howard 2022-10-14 14:42:10 UTC
I've added @se to this bug because the version in 13.1-RELEASE is too old.

13.1-RELEASE has 5.2.2. This bug was fixed in 5.2.4. I hope that updating 13.1-RELEASE to 5.2.4 (at least) is possible, but since I'm not a FreeBSD regular, that decision would have to come from @se.
Comment 3 Jason W. Bacon freebsd_committer freebsd_triage 2022-10-14 16:46:54 UTC
Not a big worry.  I just noticed there's a gh-bc port in addition to the bc in base.

Users can just run 'pkg install gh-bc' to get a newer version (currently 6.0.2), which will be automatically updated by 'pkg upgrade'.
Comment 4 Gavin D. Howard 2022-10-15 17:40:31 UTC
Okay, sounds good to me. Should this bug report be closed?
Comment 5 Stefan Eßer freebsd_committer freebsd_triage 2023-08-02 06:49:08 UTC
FreeBSD-13.1 has reached EoL and all later FreeBSD releases come with a fixed bc.