Message ID | ba1440bf05e22d3cae38521a25cb3ca90b30680d.1660436383.git.nabijaczleweli@nabijaczleweli.xyz (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Herbert Xu |
Headers | show |
Series | [1/2] man: printf: all Ar arguments are processed identically | expand |
On 14/08/2022 01:19, наб wrote: > The current wording says that given > printf a b c d > a is the format, c and d are processed as noted, > but b is unspecified I think the way "arguments after the first" is intended to be read is "arguments after the format string", as the format string is itself an argument. But this is not clear at all: "printf format [arguments ...]" can be read as saying that the format is not an argument. Perhaps "arguments after the format string" or "arguments after format" would be a better replacement that avoids any ambiguity? Cheers, Harald van Dijk
diff --git a/src/dash.1 b/src/dash.1 index ff02237..bd5c311 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -1544,7 +1544,7 @@ each of which causes printing of the next successive .Pp The .Ar arguments -after the first are treated as strings if the corresponding format is +are treated as strings if the corresponding format is either .Cm b , .Cm c
The current wording says that given printf a b c d a is the format, c and d are processed as noted, but b is unspecified Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> --- src/dash.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)