Re: Bash 5.2: broken built-in printf for float numbers

2024-11-07 Thread Chet Ramey
On 11/7/24 4:16 AM, Thomas Dreibholz wrote: Hi, Bash 5.2 has a broken built-in printf for float numbers. https://lists.gnu.org/archive/html/bug-bash/2024-09/msg00094.html -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates C

Re: Bash 5.2: broken built-in printf for float numbers

2024-11-07 Thread Greg Wooledge
On Thu, Nov 07, 2024 at 10:16:46 +0100, Thomas Dreibholz wrote: > Hi, > > Bash 5.2 has a broken built-in printf for float numbers. > > Example: printf "%5.1f" 1024 should print "1024.0" (with standard locale > LC_ALL=C.UTF-8) > > Testing the Bash shell in different versions of recent Debian and

Bash 5.2: broken built-in printf for float numbers

2024-11-07 Thread Thomas Dreibholz
Hi, Bash 5.2 has a broken built-in printf for float numbers. Example: printf "%5.1f" 1024 should print "1024.0" (with standard locale LC_ALL=C.UTF-8) Testing the Bash shell in different versions of recent Debian and Ubuntu setups, the output is wrong. Bug tracker for Debian: https://bugs.de