bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #66068] built-in printf function not working with float


From: Greg Wooledge
Subject: Re: [bug #66068] built-in printf function not working with float
Date: Tue, 6 Aug 2024 07:22:46 -0400

On Tue, Aug 06, 2024 at 05:58:56 -0400, anonymous wrote:
> jesusm@liet:[~]$ bash --version
> GNU bash, version 5.2.32(1)-release (x86_64-slackware-linux-gnu)
> Copyright (C) 2022 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> 
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> jesusm@liet:[~]$ printf "%f\n" 1.2
> -nan

For whatever it's worth, I can't duplicate this with upstream bash 5.2.32
compiled on Debian 12 amd64.  It might be a problem in the poster's libc,
the poster's compiler, or some Linux distribution's patches.

The poster might be using "x86_64-slackware-linux-gnu" as shown in
the output, but there's no way to contact them to get confirmation or
additional details (like "which version of Slackware").



reply via email to

[Prev in Thread] Current Thread [Next in Thread]