Re: [Gc] [PATCH] remove doubled words from comments
Ivan Maidanski
ivmai at mail.ru
Mon Apr 11 13:21:25 PDT 2011
Hi,
Checked in. Thanks.
Mon, 11 Apr 2011 09:47:26 +0200 Jim Meyering <jim at meyering.net>:
> This patch removes doubled words (here, they're all in comments),
> making changes like s/to to/to/ and s/is is/is/, etc.
>
> Affected files:
>
> configure.host | 2 +-
> doc/README | 2 +-
> extra/setjmp_t.c | 2 +-
> libatomic_ops/doc/README.txt | 2 +-
> os_dep.c | 4 ++--
> tests/huge_test.c | 2 +-
> 6 files changed, 7 insertions(+), 7 deletions(-)
>
> To find candidates, I ran this command:
> vc-list-files | xargs perl -0777 -n \
> -e 'while (/\b(then?|[iao]n|i[fst]|but|f?or|at|and|[dt]o)\s+\1\b/gims)' \
> -e '{$n=($` =~ tr/\n/\n/ + 1); ($v=$&)=~s/\n/\\n/g; print "$ARGV:$n:$v\n"}'
>
> where vc-list-files is from here:
> http://git.sv.gnu.org/cgit/gnulib.git/tree/build-aux/vc-list-files
> ...
More information about the Gc
mailing list