On 4/16/22 12:50 PM, Sam James wrote:
On 16 Apr 2022, at 17:11, Chet Ramey <chet.ra...@case.edu> wrote:
On 4/16/22 1:45 AM, Sam James wrote:
Bash Version: 5.2
Patch Level: 0
Release Status: beta
Description:
Bash crashes when running compgen -c -X a.
Repeat-By:
# bash -c "compgen -c -X a"
Segmentation fault (core dumped)
I can't reproduce this. I wonder if it has to do with resource limits.
Suspect Andreas' reply may be more insightful, but was able to reproduce this
in a fresh Debian stable chroot too,
created with debootstrap.
root@debian-stable:~/bash-5.2-beta# /usr/local/bin/bash -c "compgen -c -X a"
Segmentation fault (core dumped)
Thanks to you and Andreas. I tracked down the offending change, from April
2021. It only affects compgen called from non-interactive shells.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/