From: "Štěpán Němec" <stepnem@gmail.com>
To: Michael Kerrisk <mtk.manpages@gmail.com>,
Alejandro Colomar <alx.manpages@gmail.com>
Cc: linux-man@vger.kernel.org
Subject: Error in getopts(1p)
Date: Wed, 04 Aug 2021 11:40:01 +0200 [thread overview]
Message-ID: <20210804114001+0200.622908-stepnem@gmail.com> (raw)
Hello,
there is an error at the end of the example:
printf "Remaining arguments are: %s\n$*"
should be
printf "Remaining arguments are: %s\n" "$*"
(cf.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html )
I would have sent a patch, but couldn't find the POSIX man page sources.
Are they available somewhere?
Thanks,
Štěpán
next reply other threads:[~2021-08-04 9:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-04 9:40 Štěpán Němec [this message]
2021-08-04 10:49 ` [PATCH] man-pages-posix-2017/man1p/getopts.1p: Fix usage of printf(1) in example Alejandro Colomar
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=20210804114001+0200.622908-stepnem@gmail.com \
--to=stepnem@gmail.com \
--cc=alx.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/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