Justin Pryzby wrote: > On Wed, Feb 28, 2007 at 05:25:15PM -0800, Michael Kerrisk wrote: >> tags 412467 fixed-upstream >> thanks >> >> Hi Justin, >> >>> The following pages repeat the the word "the": >> Was this subtle humour? ;-) > Or otherwise my attempt thereat. > >>> ptrace >> This seems already to have been fixed in some post 2.39 upstream release. > In 2.40 now: > > This call is used by programs like User Mode Linux that want to emu- > late all the the child's syscalls. (addr and data are ignored; > ^^^^^^^ > >>> scanf > corresponding pointer argument. If the next item of input does not > match the the conversion specification, the conversion fails > ^^^^^^^ > >> I do not even see the problem in 2.39. Please provide more info. >> >>> tsearch > |to a leaf node. (These symbols are defined in <search.h>.) The third > |argument is the depth of the node, with zero being the root. You should > |not modify the tree while traversing it as the the results would be > ^^^^^^^ > |undefined. > > >> I also wrote a short script that found a few other duplicated word errors. > Could you share it? I wrote something to the effect of > dpkg -L |xargs zgrep -Ee '(\w{5,}) *\1' > > I think I wrote something more effective another time, but can't think > what it was. > > Justin
The following will be in scripts/find_repeated_words.sh. NOTE: it provides guidance only: the files must still be inspected -- some duplicate words are valid English. Cheers, Michael #!/bin/sh # # A simple script for finding instances of repeated consecutive words # in manual pages -- human inspection can then determine if these # are real errors in the text. # # Usage: sh find_repeated_words.sh [file...] # for file in "$@" ; do words=$(man -l "$file" 2> /dev/null | col -b | \ tr ' \008' '\012' | sed -e '/^$/d' | \ awk 'BEGIN {p=""} {if (p==$0) print p; p=$0 }' | \ grep '[a-zA-Z]' | tr '\012' ' ') if test "X$words" != "X"; then echo "$file: $words" fi done -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at http://www.kernel.org/pub/linux/docs/manpages/ read the HOWTOHELP file and grep the source files for 'FIXME'. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]