#	@(#)edhelp.sh	13.1 (RC International) 91/07/25

#	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#!/sbin/sh
#ident	"@(#)oamintf:edsysadm/edhelp.sh	1.4"
#
# if EDITOR is not set then default it to /usr/bin/ed.
#

if [ -z "`echo $EDITOR`" ]
then
	EDITOR=/usr/bin/ed
	echo "EDITOR has been set to '`echo $EDITOR`'."
	sleep 2
fi

hfname=`echo ${1} | sed -e 's/  *//'`

if [ -z "$hfname" ] 
then
	$EDITOR "Help"
else
	$EDITOR $1
fi
