#! /bin/sh
#
# Check the command line args, and suggest changes for possibly misspelled words
#


res=`echo "$@" | ispell -a | grep "^& " | \
	sed -e "s/^& \([^ ]*\) [0-9][0-9]* [0-9][0-9]*: /\1: /"`	

if [ "$res" ]
then
	echo "$res"
	exit 1
fi

exit 0
