Re: Bash printf should diagnose integer overflow

2024-03-13 Thread Paul Eggert
On 3/13/24 11:13, Chet Ramey wrote: Thanks for the report. The most appropriate fix for this particular issue is to display an error message if printf returns < 0, instead of suppressing it unless the -v option has been set. Oh, good point. This simplifies things a bit, though Bash still

Re: nameref and referenced variable scope, setting other attributes (was "local -g" declaration references local var in enclosing scope)

2024-03-13 Thread Chet Ramey
On 3/10/24 7:29 PM, Zachary Santer wrote: Bash Version: 5.2 Patch Level: 26 Release Status: release Description: On Sun, Mar 10, 2024 at 3:55 PM Zachary Santer wrote: Relatedly, how would one set attributes on a variable declared in a calling function? 'readonly' and 'export' can do it for

Re: Bash printf should diagnose integer overflow

2024-03-13 Thread Chet Ramey
On 3/12/24 3:49 PM, Paul Eggert wrote: Bash Version: 5.3 Patch Level: 26 Release Status: devel Description: Commands like "printf '%1s' ''" silently ignore width and precision.  They should report the integer overflow before continuing with a lesser

Re: multi-threaded compiling

2024-03-13 Thread Mischa Baars
I found another mistake of mine: #ifndef __STRINGIZED__ should be #if __STRINGIZED__ == 0 or it will always go for the second statement in the conditional. Can someone please correct my script??? Things are starting to itch. On Wed, Mar 13, 2024 at 8:44 AM alex xmb sw ratchev wrote: > > >

Re: multi-threaded compiling

2024-03-13 Thread alex xmb sw ratchev
On Wed, Mar 13, 2024, 08:26 Mischa Baars wrote: > On Tue, Mar 12, 2024 at 10:00 PM Paul Smith wrote: > > > On Tue, 2024-03-12 at 13:37 +0100, Mischa Baars wrote: > > > > I'd still like to hear why you aren't simply using "make -j". > > > > > > That's because I don't want to define static

Re: multi-threaded compiling

2024-03-13 Thread Mischa Baars
On Wed, Mar 13, 2024 at 4:14 AM Martin D Kealey wrote: > > On Mon, Mar 11, 2024 at 8:20 PM Chet Ramey wrote: >> > On 3/11/24 2:50 PM, Mischa Baars wrote: >> > > Which sort of brings us back to the original question I suppose. Who >> does >> > > that line of code function from a script and why

Re: multi-threaded compiling

2024-03-13 Thread Mischa Baars
On Tue, Mar 12, 2024 at 10:00 PM Paul Smith wrote: > On Tue, 2024-03-12 at 13:37 +0100, Mischa Baars wrote: > > > I'd still like to hear why you aren't simply using "make -j". > > > > That's because I don't want to define static compile and link targets > > for every new project I start. The