Login shell?

Dik T. Winter dik at cwi.nl
Sun Oct 23 06:32:22 AEST 1988


In article <842 at philmds.UUCP> leo at philmds.UUCP (Leo de Wit) writes:
 > 2) When I exec a shell in my .profile file (for instance if I want my
 > own shell instead of /bin/sh or /bin/csh and don't want to bother my
 > system manager), this shell doesn't start with '-'.

But why not?  This is just what I have done for a long time: in my bin:
	ln -s $HOME/bin/my_shell -my_shell
and at the start of my .profile:
	case $SHELL in
	*my_shell)	;;
	*)	SHELL=$HOME/bin/my_shell
		PATH=$HOME/bin exec -my_shell
	esac
Works like a charm.  My shell will even do .profile.
-- 
dik t. winter, cwi, amsterdam, nederland
INTERNET   : dik at cwi.nl
BITNET/EARN: dik at mcvax



More information about the Comp.unix.questions mailing list