From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: michael.saunders@tuta.io
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org
Subject: Re: possible typo in `man 3 getopt`
Date: Tue, 8 Sep 2020 12:12:02 +0200 [thread overview]
Message-ID: <e37dba0a-d0cd-2969-c37a-0ef8e59e581b@gmail.com> (raw)
In-Reply-To: <MGh9xxx--3-2@tuta.io>
Hello Michael,
On 9/8/20 12:03 PM, michael.saunders@tuta.io wrote:
> Think this is just a one char bug.
>
> In the first example provided, the if statement checks for `optind >= argc`,
> which I believe should be `<` or maybe `<=`.
> Thanks for the truly indespensable work.
The code looks okay to me. Why do you think it's wrong?
Thanks,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
prev parent reply other threads:[~2020-09-08 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-08 10:03 possible typo in `man 3 getopt` michael.saunders
2020-09-08 10:12 ` Michael Kerrisk (man-pages) [this message]
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=e37dba0a-d0cd-2969-c37a-0ef8e59e581b@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=michael.saunders@tuta.io \
/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