[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#72567: printf: Incorrect description of "%b"
From: |
Pádraig Brady |
Subject: |
bug#72567: printf: Incorrect description of "%b" |
Date: |
Sun, 11 Aug 2024 15:15:05 +0100 |
User-agent: |
Mozilla Thunderbird Beta |
forcemerge 72567 72568
close 72567
stop
On 11/08/2024 04:05, Keith Thompson wrote:
There are three different descriptions of the printf(1) "%b" format:
- printf --help
- man printf.1
- info coreutils printf
As of release 9.5 and the latest version in git (Thu 2024-08-08
c5725c8c4), the first two incorrectly say that octal escapes are
of the form \0 or \0NNN. In fact the \0 can be followed by 0 to 3
octal digits.
Right. The main point there really is that a leading 0 is the exception.
(A leading 0 is required by ksh for example, but optional elsewhere).
I've pushed a change along those lines at:
https://github.com/coreutils/coreutils/commit/296cc3ed9
thanks,
Pádraig