Re: Bogus (intptr_t) casts

2024-08-01 Thread Dale R. Worley
Martin D Kealey writes: > It follows that the following assertions are allowed to fail: > > intptr_t i = 0; > assert((void*)i == (void*)0); > void *p = 0; > assert((intptr_t)p == 0); (After removing the bogus "*" that got inserted.) Yeah, it looks like that's correct; there doesn't seem

Re: Backticked, nested command will steal piped stdin

2024-08-01 Thread Chet Ramey
On 7/30/24 8:49 AM, Justus wrote: Hello bash team! I found a bug in my beloved bash and hope that you can fix it! Everything else is described in the attached bashbug.txt Word expansions like command substitution are run in the context of the shell instance performing the expansion, which mean

Bogus (intptr_t) casts

2024-08-01 Thread Martin D Kealey
Hi Chet According to ISO/IEC 9899-2017, §6.3.2.3(3): *“An integer constant expression with the value 0, or such an expression cast to type void * , is called a null pointer constant. If a null pointer constant is converted to a pointer type, the resulting pointer, called a null pointer, is guaran