Re: built-in printf returns success when integer is out of range

2023-07-27 Thread Chet Ramey
On 7/26/23 4:18 PM, tho...@habets.se wrote: Bash Version: 5.2 Patch Level: 15 Release Status: release Description: printf '%d\n' 111 && echo success prints "success" /usr/bin/printf does not, but instead returns EXIT_FAILURE (1). The bash pri

Re: built-in printf returns success when integer is out of range

2023-07-26 Thread Lawrence Velázquez
> On Jul 26, 2023, at 5:14 PM, tho...@habets.se wrote: > > On Wed, 26 Jul 2023 21:52:32 +0100, Dennis Williamson > said: >> You didn't include all the output. It's treated as a warning rather than an >> error. That's why an error status isn't set. > > Ah indeed, the stderr message with bash buil

Re: built-in printf returns success when integer is out of range

2023-07-26 Thread thomas
On Wed, 26 Jul 2023 21:52:32 +0100, Dennis Williamson said: >> Configuration Information [Automatically generated, do not change]: >> Machine: x86_64 >> OS: linux-gnu >> Compiler: gcc >> Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat >> -Werror=format-security -Wall >> uname output:

Re: built-in printf returns success when integer is out of range

2023-07-26 Thread Dennis Williamson
On Wed, Jul 26, 2023, 3:40 PM wrote: > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: linux-gnu > Compiler: gcc > Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -Wall > uname output: Linux fnord42 6.1.25-1rodete1

built-in printf returns success when integer is out of range

2023-07-26 Thread thomas
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall uname output: Linux fnord42 6.1.25-1rodete1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.25-1rodete1