bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug report


From: Daniel Mills
Subject: Re: bug report
Date: Fri, 23 Apr 2021 11:10:05 -0400

On Fri, Apr 23, 2021 at 10:43 AM john <j.h.meelker@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
>
>
>
You want shopt -s extglob.

set -e extglob turns on errexit, and sets "$1" to "extglob". ls then exits
>0 and the shell terminates.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]