[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fc can segfault if history is cleared
From: |
Jason Franklin |
Subject: |
Re: fc can segfault if history is cleared |
Date: |
Sat, 18 Nov 2023 23:24:30 -0500 |
On Sun, Nov 19, 2023 at 10:31:59AM +0700, Robert Elz wrote:
> | $ history -c; fc -0
> | Segmentation fault (core dumped)
> |
> | Can someone else confirm this?
>
> Which bash version are you using?
>
> I just tried that on
> GNU bash, version 5.2.21(1)-release (x86_64--netbsd)
>
> No core dump, just my editor with an empty file.
Thanks for the sanity check, Robert.
Indeed, it looks like my version of Bash was just too old.
I am using version 5.1.16(1)-release. I switched to 5.2.15(1)-release,
and I got the behavior you described.
Sorry for the false alarm.
Best,
--
Jason Franklin