#sccs	"@(#)enhancdeds:Remove	1.1"

LIST1="bfs vi edit ex view"
LIST2="ex3.7preserve ex3.7recover ex3.7strings"

echo "Removing ENHANCED EDITOR files"
for i in $LIST1
do
	rm -f /usr/bin/$i
done

for i in $LIST2
do
	rm -f /usr/lib/$i
done

ED=`grep "^EDIT" /usr/lib/ua/Environment`
if [ $ED = "EDIT=/usr/bin/vi" ]
then
	grep -v "^EDIT" /usr/lib/ua/Environment > /tmp/t
	echo "EDIT=/bin/ed" >> /tmp/t
	cp /tmp/t /usr/lib/ua/Environment
	rm -f /tmp/t
fi
echo "ENHANCED EDITOR removal complete"
