Red Hat Bugzilla – Bug 6099
'spell' problems: stdin only, duplicate misspellings
Last modified: 2008-05-01 11:37:52 EDT
A traditional spell command will spellcheck one or more
files given on the command line (or stdin if there are no
files given on the command line), and misspelled words will
only be given once.
The 'spell' script included in the ispell RPM will only
spellcheck standard input and will repeat misspelled words
as many times as they occur in the input.
$ echo This spel command is awful at catchng spel mistakes
$ spell </dev/null /tmp/spelltest
$ spell </tmp/spelltest
The simple fix appears to be to replace spell with the
following shell script:
cat "$@" | ispell -l | sort -u
(This bug report is applicable to RedHat 6.1 unless the
behavior of 'ispell -l' has changed, which the manpage
claims it has not.)
There is also no manpage for the spell command.
Makes sense; I've changed the spell script for ispell-3.1.20-23, which
will be in the next RawHide. Thanks!
*** Bug 7734 has been marked as a duplicate of this bug. ***