you wrong set set -e shopt -s extglob da=( ?(a)match )
declare -p da i recomment u dont set -e On Fri, Apr 23, 2021, 16:43 john <j.h.meel...@gmail.com> wrote: > From: john > To: bug-bash@gnu.org > Subject: ls dumps bash > > 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/b > ash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout' > -DNON_INTERACTIVE_LOGIN_SHELLS > uname output: Linux john-arch 5.11.16-arch1-1 #1 SMP PREEMPT Wed, 21 Apr > 2021 17:22:13 +0000 x86_64 GNU/Linux > Machine Type: x86_64-pc-linux-gnu > > Bash Version: 5.1 > Patch Level: 4 > Release Status: release > > Description: > After the two commands as specified, the bash session ends > unexpectedly > > Repeat-By: > set -e extglob > ls ?(0)9,v > > >