Re: Segmentation fault from running fc on empty history list

2021-06-16 Thread Chet Ramey
On 6/15/21 3:50 PM, Sibo Dong wrote: Hello, Running the fc builtin on an empty history list results in a segmentation fault from bash. Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ra

Segmentation fault from running fc on empty history list

2021-06-15 Thread Sibo Dong
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 $

Segmentation fault from running fc on empty history list

2021-06-15 Thread Flyingpig
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt - DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' - DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/ba