bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] printf: add %#s alias to %b


From: Rob Landley
Subject: Re: [PATCH] printf: add %#s alias to %b
Date: Tue, 5 Sep 2023 18:34:50 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

On 9/5/23 15:44, Chet Ramey wrote:
> On 9/5/23 4:32 PM, Dragan Simic wrote:
>> On 2023-09-05 22:25, Chet Ramey wrote:
>>> On 9/5/23 3:58 PM, enh wrote:
>>>> On Fri, Sep 1, 2023 at 6:59 AM Chet Ramey <chet.ramey@case.edu> wrote:
>>>
>>>>> I think you'll find that, regardless of its origins, there are more 
>>>>> scripts
>>>>> using the %b specifier than you think.
>>>>
>>>> i'd personally never heard of printf(1) %b before this thread, but
>>>> debian code search agrees with you:
>>>
>>> It's a POSIX invention dating from at least 1991 (P1003.2-D11).
>>>
>>> The POSIX guidance to use it as a portable way to replace SysV echo has
>>> dated from the same time. It's a pretty big lift to suddenly invalidate
>>> all that prior art. ("POSIX giveth, and POSIX taketh away.").
>> 
>> Are there any official explanations why is the invalidation actually 
>> happening now?
> 
> https://lists.gnu.org/archive/html/bug-bash/2023-08/msg00112.html
> 
> C23 is going to use %b to print binary literals.

Upper case %B was taken?

Rob




reply via email to

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