Hello,

Running the fc builtin on an empty history list results in a
segmentation fault from bash.

Additional info:

* Operating system: Arch Linux
* Architecture: x86_64
* bash version: 5.1.8(1)-release

Steps to reproduce:

 $ bash --noprofile --norc
 $ HISTCONTROL=ignorespace
 $ history -c
 $  fc
 Segmentation fault (core dumped)

-- 
Sibo Dong <sibo.d...@outlook.com>

Reply via email to