From: Alejandro Colomar <alx.manpages@gmail.com>
To: Florian Loth <florian.loth@yahoo.de>,
linux-man@vger.kernel.org, elmono@mailbox.org
Subject: Re: [patch] read.1p: Split format and argument of printf call
Date: Mon, 6 Mar 2023 13:41:41 +0100 [thread overview]
Message-ID: <fee0bb29-593f-869d-044b-3bb25e02c6c4@gmail.com> (raw)
In-Reply-To: <c9684666-8915-42fe-c44b-2d90c18f71e0@yahoo.de>
[-- Attachment #1.1: Type: text/plain, Size: 869 bytes --]
Hi Florian,
On 3/2/23 23:05, Florian Loth wrote:
> As printf expects the format and arguments as separate arguments, split
> the string accordingly. This is already fixed in the HTML version of the
> standard.
Patch applied.
Thanks,
Alex
> ---
> man-pages-posix-2017/man1p/read.1p | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man-pages-posix-2017/man1p/read.1p b/man-pages-posix-2017/man1p/read.1p
> index e09b896..d7e3a0a 100644
> --- a/man-pages-posix-2017/man1p/read.1p
> +++ b/man-pages-posix-2017/man1p/read.1p
> @@ -196,7 +196,7 @@ The following command:
>
> while read -r xx yy
> do
> - printf "%s %s\en$yy$xx"
> + printf "%s %s\en" "$yy" "$xx"
> done < \fIinput_file\fR
> .fi
> .P
--
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next parent reply other threads:[~2023-03-06 12:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c9684666-8915-42fe-c44b-2d90c18f71e0.ref@yahoo.de>
[not found] ` <c9684666-8915-42fe-c44b-2d90c18f71e0@yahoo.de>
2023-03-06 12:41 ` Alejandro Colomar [this message]
2023-03-02 22:19 [patch] read.1p: Split format and argument of printf call elmono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fee0bb29-593f-869d-044b-3bb25e02c6c4@gmail.com \
--to=alx.manpages@gmail.com \
--cc=elmono@mailbox.org \
--cc=florian.loth@yahoo.de \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox