From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Stéphane Aulery" <saulery-GANU6spQydw@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] find_repeated_words.sh: Do not process files that are redirects.
Date: Sun, 22 Mar 2015 16:39:12 +0100 [thread overview]
Message-ID: <550EE220.1050605@gmail.com> (raw)
In-Reply-To: <1426378524-31758-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
On 03/15/2015 01:15 AM, Stéphane Aulery wrote:
> Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
Thanks, Stéphane. Patch applied.
Cheers,
Michael
> ---
> scripts/find_repeated_words.sh | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/scripts/find_repeated_words.sh b/scripts/find_repeated_words.sh
> index 50133be..747872e 100644
> --- a/scripts/find_repeated_words.sh
> +++ b/scripts/find_repeated_words.sh
> @@ -25,6 +25,9 @@
> #
>
> for file in "$@" ; do
> + # Do not process files that are redirects.
> + grep -qE "^\.so man.*" "$file"
> + if test $? -ne 0; then
> words=$(MANWIDTH=2000 man -l "$file" 2> /dev/null | col -b | \
> tr ' \008' '\012' | sed -e '/^$/d' | \
> sed 's/ *$//' |
> @@ -33,4 +36,5 @@ for file in "$@" ; do
> if test -n "$words"; then
> echo "$file: $words"
> fi
> + fi
> done
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2015-03-22 15:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-15 0:15 [PATCH] find_repeated_words.sh: Do not process files that are redirects Stéphane Aulery
[not found] ` <1426378524-31758-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
2015-03-22 15:39 ` 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=550EE220.1050605@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=saulery-GANU6spQydw@public.gmane.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;
as well as URLs for NNTP newsgroup(s).