bug-coreutils
[Top][All Lists]
Advanced

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

bug#73068: printf: please implement POSIX:2024 argument reordering


From: Pádraig Brady
Subject: bug#73068: printf: please implement POSIX:2024 argument reordering
Date: Thu, 12 Sep 2024 17:15:56 +0100
User-agent: Mozilla Thunderbird Beta

On 09/09/2024 19:30, Pádraig Brady wrote:
On 06/09/2024 15:06, Bruno Haible wrote:
Hi,

POSIX:2024 specifies that printf(1) should support numbered conversion
specifications:
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/printf.html
https://austingroupbugs.net/view.php?id=1592

Could this support please be added to GNU coreutils? As of coreutils 9.5,
I still get:

    $ /usr/bin/printf 'abc%2$sdef%1$sxxx\n' 1 2
    abc/usr/bin/printf: %2$: invalid conversion specification


This make sense to implement.
I see ksh and FreeBSD at least, already have.
I'll have a look at doing this.

I'll apply the attached sometime tomorrow.

Marking this as done.

cheers,
Pádraig

Attachment: printf-indexed.patch
Description: Text Data


reply via email to

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