Red Hat Bugzilla – Bug 13341
/usr/bin/spell is too dumb: -b breaks it
Last modified: 2008-05-01 11:37:56 EDT
/usr/bin/spell happily passes on flags that used to work for Unix spell,
and which make ispell hang. In particular, the -b option to select British
Note that RH also doesn't come with the British spelling dictionaries,
which is annoying. They can be found, though.
Here is an improved version of /usr/bin/spell which you are free to use:
# Make ispell work a bit more like spell.
# Author: Luke Kendall
case "x$arg" in
x-b) # British spelling
SPARGS="$SPARGS -d english"
x-i) # Make deroff ignore .so and .nx commands.
x-l) # Follow the chains of all included files. How?
x-v) # Print all words not literally in the spelling list
x-x) # Print every plausible stem, one per line, with = preceding
x+*) # local spelling word file, 1 per line, sorted
pdict=`expr "x$arg" : "x\+\(.*\)"`
SPARGS="$SPARGS -p '$pdict'"
eval "cat $FILES | ispell -l $SPARGS | sort -u"
We're moving to aspell for the next release - and we include a British
dictionary with it.