Re: foo=bar baz=${|...;} cmd segfauls after running ...

2025-03-24 Thread Chet Ramey
On 3/23/25 7:37 PM, Emanuele Torre wrote: If you run a simple command that runs something (not just assignments) and contains an assignment word with ${|;} that is preceeded by at least one other assignment word, bash segfaults. Thanks for the report. The fix was a simple matter of swapping two

foo=bar baz=${|...;} cmd segfauls after running ...

2025-03-23 Thread Emanuele Torre
If you run a simple command that runs something (not just assignments) and contains an assignment word with ${|;} that is preceeded by at least one other assignment word, bash segfaults. Reproducible with a= b=${|:;} : $ gdb --args ./bash -c 'a= b=${|:;} :' Reading symbols from ./bash... (gdb)