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: x86_64-pc-li

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 thu

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. > > It's

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 stuf

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 transl

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, the

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 themse

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); either