Subject: Re: -csh (tcsh)
To: None <port-amiga@netbsd.org>
From: Lars Hecking <lhecking@nmrc.ucc.ie>
List: port-amiga
Date: 08/31/1998 10:55:20
> >  Example: I have installed tcsh locally on my Solaris box, and I have a
> >  softlink from tcsh to -tcsh. The default shell for users is csh, and I
> >  exec -tcsh in my .login. Thus, in a ps style listing like yours above,
> >  the shell would show up as  .... -tcsh (tcsh).
> 
> *If* you do these twists and turns, you would eventually end up with
> the presented ps-output. But this is not what George has done.

 I realised this as soon as I noticed that tcsh is not part of a standard
 install.

> BTW: Do you have any additional checks in .login? Otherwise, you would
> probably create a nice loop (as the new login-shell would execute .login).
> The other possibility is, that the shell you get is not a login-shell,
> and the -tcsh magic doesn't work.

 if ( $shell !~ *tcsh ) then
 ...
   setenv SHELL ${HOME}/bin/$_MCH/tcsh
   setenv SHELL_OPTS "-l"
 ...
   if ( ! ${?DT} && ${?SHELL} ) exec ${SHELL} ${SHELL_OPTS}
 endif