# Prototype file sourced by "remove" alias
# $Id: env_remove,v 1.5 1999/02/04 17:48:58 ghudson 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."
