# Prototype file sourced by "remove" alias
# $Author: svalente $
# $Source: /usr/src/athena/xdm/init/RCS/env_remove,v $
# $Header: /usr/src/athena/xdm/init/RCS/env_remove,v 1.1 1994/03/17 04:44:55 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."
