Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!apple!bionet!agate!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!dik From: dik@cwi.nl (Dik T. Winter) Newsgroups: comp.unix.questions Subject: Re: Login shell? Message-ID: <7677@boring.cwi.nl> Date: 22 Oct 88 20:32:22 GMT References: <3ed799bc.103e8@hi-csc.UUCP> <13851@mimsy.UUCP> <511@imec.UUCP> <1529@solo9.cs.vu.nl> <314@uplog.se> <842@philmds.UUCP> Organization: CWI, Amsterdam Lines: 18 In article <842@philmds.UUCP> leo@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@cwi.nl BITNET/EARN: dik@mcvax