[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf inconsistent results for %.0f
From: |
Greg Wooledge |
Subject: |
Re: printf inconsistent results for %.0f |
Date: |
Mon, 12 Aug 2024 10:53:03 -0400 |
On Mon, Aug 12, 2024 at 16:30:26 +0200, Laur Aliste wrote:
> Configuration Information:
> Machine: x86_64
> OS: linux-gnu
> Compiler: gcc
> Compilation CFLAGS: -g -O2 -Werror=implicit-function-declaration
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -fcf-protection -Wall
> uname output: Linux p14s 6.9.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian
> 6.9.12-1 (2024-07-27) x86_64 GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
>
> Bash Version: 5.2
> Patch Level: 21
> Release Status: release
>
> Description:
> One of my old script that's been in use for 10+ years is using
> built-in bash printf
> for rounding float value to int via `printf`; as of today (Aug 12)
> it started
> returning erroneous and inconsistent results.
Arch Linux, by any chance?
https://lists.gnu.org/archive/html/bug-bash/2024-07/msg00034.html
https://gitlab.archlinux.org/archlinux/packaging/packages/bash/-/issues/3