pop_var_context msg when eval code with errexit set

2022-10-11 Thread Xavier Delaruelle
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 uname output: Linux mosaic 5.18.17-200.fc36.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 11 14:36:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux Machine Type:

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Dennis Williamson
On Tue, Oct 11, 2022, 3:12 PM Greg Wooledge wrote: > On Tue, Oct 11, 2022 at 12:38:44PM -0700, Koichi Murase wrote: > > As far as I know, glob/extglob > > does not have constructs that cannot be represented by formal regular > > languages so should always be able to be represented by NFAs and

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Koichi Murase
2022年10月11日(火) 13:12 Greg Wooledge : > On Tue, Oct 11, 2022 at 12:38:44PM -0700, Koichi Murase wrote: > > As far as I know, glob/extglob > > does not have constructs that cannot be represented by formal regular > > languages so should always be able to be represented by NFAs and thus DFAs. > >

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Greg Wooledge
On Tue, Oct 11, 2022 at 12:38:44PM -0700, Koichi Murase wrote: > As far as I know, glob/extglob > does not have constructs that cannot be represented by formal regular > languages so should always be able to be represented by NFAs and thus DFAs. It's been too many decades since I studied this

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Koichi Murase
2022年10月11日(火) 16:22 Martin D Kealey : > However I note that it's not always possible to make a Deterministic FSA > when you have repeatable groups which themselves don't have fixed lengths > (like a+(a|abbba|aabb*aba)b); This is not true. Any non-deterministic finite automaton (NFA) can be

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Chet Ramey
On 10/11/22 1:26 AM, Phi Debian wrote: On the contrary I see nor reference saying the 'pattern matching for pathname expansion can also be used by extension to any strings, but now I understand it is. The conditional command is explicit about it: "When the == and != operators are used,

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Phi Debian
On Tue, Oct 11, 2022 at 9:02 AM Martin D Kealey wrote: > Broadly I meant translating into a "preferably" Deterministic > (stackless/non-backtracking) Finite State Automaton. > > However I note that it's not always possible to make a Deterministic FSA > when you have repeatable groups which

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Martin D Kealey
Broadly I meant translating into a "preferably" Deterministic (stackless/non-backtracking) Finite State Automaton. However I note that it's not always possible to make a Deterministic FSA when you have repeatable groups which themselves don't have fixed lengths (like a+(a|abbba|aabb*aba)b);

Re: declare -F incorrect line number

2022-10-11 Thread Martin D Kealey
You do realize that there are no "nested functions" in bash, right? Graycat, talk to me on Libera if you really doubt my understanding. All functions exist in a single, global function namespace. > > unicorn:~$ bash > unicorn:~$ f() { g() { echo I am g; }; } > unicorn:~$ f > unicorn:~$ type g >

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Phi Debian
iner ==> infer sorry about typo's

Re: bash core dumps doing glob pattern on long string

2022-10-11 Thread Phi Debian
Hum, may be I was over optimistic regarding alloca(), it seems it core dumps as well :-), i.e never return NULL. I was mentioning alloca() because I use to do my own stacksize check using getrlimit() and getting the max stack size, and measuring the distance between the stack_base and the