[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] printf: add %#s alias to %b
From: |
Chet Ramey |
Subject: |
Re: [PATCH] printf: add %#s alias to %b |
Date: |
Tue, 5 Sep 2023 16:25:43 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 |
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.").
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: [PATCH] printf: add %#s alias to %b, Chet Ramey, 2023/09/01
- Re: [PATCH] printf: add %#s alias to %b, enh, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b,
Chet Ramey <=
- Re: [PATCH] printf: add %#s alias to %b, Dragan Simic, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b, Chet Ramey, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b, Rob Landley, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b, enh, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b, Chet Ramey, 2023/09/06
- Re: [PATCH] printf: add %#s alias to %b, William Bader, 2023/09/05
- Re: [PATCH] printf: add %#s alias to %b, Chet Ramey, 2023/09/06
- Re: [PATCH] printf: add %#s alias to %b, Eric Blake, 2023/09/06
- Re: [PATCH] printf: add %#s alias to %b, Chet Ramey, 2023/09/06
- Re: [PATCH] printf: add %#s alias to %b, Robert Elz, 2023/09/07