Re: [PATCH] fix uneccesary copy of function bodies for BASH_SOURCE

2024-06-04 Thread Chet Ramey
On 6/4/24 2:10 AM, konsolebox wrote: I haven't looked at this but it will keep lazy functions safe to implement right? Yes. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRUc...@case.eduhttp

Re: [PATCH] cond expr: cleanup on errors

2024-06-04 Thread Chet Ramey
On 6/3/24 7:30 PM, Grisha Levit wrote: On Mon, Jun 3, 2024 at 3:53 PM Chet Ramey wrote: On 5/31/24 5:07 PM, Grisha Levit wrote: Two minor leak fixes for conditional command error conditions: If a WORD token is read when COND_AND, COND_OR, COND_END, or a binary operator are expected, the allo

Re: readonly inconsistency with arrays

2024-06-04 Thread Chet Ramey
On 6/3/24 5:54 PM, Will Allan via Bug reports for the GNU Bourne Again SHell wrote: I'm seeing what appears to be an inconsistency with using `readonly` on variables declared in a previous scope. I think this is a functionality mismatch, and probably a bug in readonly and export. While readonl

Re: readonly inconsistency with arrays

2024-06-04 Thread Chet Ramey
On 6/3/24 6:57 PM, Zachary Santer wrote: On Mon, Jun 3, 2024 at 6:16 PM Will Allan via Bug reports for the GNU Bourne Again SHell wrote: My understanding is that the readonly builtin isn't supposed to handle compound assignment syntax like the declare and local builtins do.[1][2] That it migh

Re: [bug #65827] Cross-compilation fails with gcc 14.1.0

2024-06-04 Thread Brett Neumeier
On 6/3/24 08:30, Chet Ramey wrote: On 6/2/24 9:43 AM, Brett Neumeier wrote: ./configure --build=x86_64-unknown-linux-gnu --host=aarch64-cbl-linux-gnu --enable-static-link --without-bash-malloc I get this failure: [...] If I add "#include " to tparam.c, it bui

Re: [PATCH] cond expr: cleanup on errors

2024-06-04 Thread Grisha Levit
On Mon, Jun 3, 2024 at 3:53 PM Chet Ramey wrote: > > On 5/31/24 5:07 PM, Grisha Levit wrote: > > Two minor leak fixes for conditional command error conditions: > > > > If a WORD token is read when COND_AND, COND_OR, COND_END, or a binary > > operator are expected, the allocated WORD_DESC is leaked

REQUEST

2024-06-04 Thread Saint Michael
> > It's time to add floating point variables and math to bash. It just makes so much easier to solve business problems without external calls to bc or Python. Please let's overcome the "shell complex". Let's treat bash a real language.