On Tue Oct 8, 2024 at 3:31 AM CEST, G. Branden Robinson wrote:
> [...]
>
> At 2024-10-07T23:00:59+0000, Bjarni Ingi Gislason wrote:
> > [...]
> > "printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -mandoc -Z - "
>
> [...]
> The foregoing is also revealing of a low level of sophistication with
> printf(1).  That utility applies the given format string to _each_ of
> its arguments.
> [...]

Only when there are more arguments than there are format specifiers.
(Compare `printf '%03d\n' 1 2` with `printf '%03d;%02d\n' 1 2`.)
His usage is correct, although I would personally make the requests
part of the formatting string as they are constant anyway.

~ onf

Reply via email to