# Prototype file sourced by "remove" alias
# $Author: svalente $
# $Source: /afs/sipb/project/sipb-athena/xdm/init/RCS/env_remove,v $
# $Header: /afs/sipb/project/sipb-athena/xdm/init/RCS/env_remove,v 1.1 1995/03/23 02:51:45 svalente Exp $

if ($?setup_dir  && $?setup_filsys) then
	if (-r $setup_dir/.detachrc) source $setup_dir/.detachrc
	cd /			# get out of locker
	/bin/athena/detach $setup_filsys
	kill -HUP $$ 		# cause shell to exit
endif

echo "Remove only works from the same shell in which you typed setup."
