On May 29, 2012, at 2:49 PM, Jim Meyering wrote:
> Running the following command spots over 1500 typos, and suggests fixes:
>
> $ git ls-files|misspellings -f -|grep -v '^ERROR:'|perl -pe \
> 's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/' > k
>
> The misspellings command comes from here:
> http://github.com/lyda/misspell-check
>
> From the list below, I've excluded any that affect ChangeLog or .po files:
>
> $ grep -vE 'ChangeLog|\.po$' k > k2
>
> (Note that these sed commands are just suggestions that do not take
> into account any context, and that some of them have two or more
> alternates, so that applying the sed command as-is would be invalid.
>
> Also note: the line numbers listed below work for me with yesterday's
> up-to-date trunk, but if you want to use these commands, you should rerun
> the commands above so that the line numbers reflect your actual sources.
> )
>
> This is just a heads up.
> I'm not volunteering to make these changes.
Some of them are wrong for Ada:
> sed -i '80s!withing!within!' gcc/ada/a-calend-vms.adb
> sed -i '79s!withing!within!' gcc/ada/a-calend.adb
> sed -i '1488s!withing!within!' gcc/ada/a-calend.adb
withing is the action of 'with' a unit.
> sed -i '41s!STPO!Stop!' gcc/ada/a-dynpri.adb
STPO is the acronym of System.Task_Primitives.Operations
Tristan.