bug report

2021-04-23 Thread john

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 + 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




Re: bug report

2021-04-23 Thread Daniel Mills
On Fri, Apr 23, 2021 at 10:43 AM john  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 + 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.


Re: bug report

2021-04-23 Thread Alex fxmbsw7 Ratchev
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  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 + 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
>
>
>


tab compl doesnt complete ./some'thing filename at all

2021-04-23 Thread Alex fxmbsw7 Ratchev
mkdir ttt ; cd ttt
printf 'printf success'  >some\'thing
chmod +x *
./tabtab == nothing

found by samus aran on freenode irc