Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: tcsh - some more questions Message-ID: <1190@auspex.UUCP> Date: 21 Mar 89 20:19:39 GMT References: <52992@yale-celray.yale.UUCP> <18686@srcsip.UUCP> <254@ibd.BRL.MIL> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 13 >>1) Where should I 'exec tcsh' or 'exec -tcsh'? >> In my .cshrc file? with 'if (! $?tcsh) exec -tcsh' for example? >> In my .login file? > >As far as your 'tcsh' question, I don't think you really wand to >'exec' tcsh at all. When you exec from within a script file, you are >merely replacing the script file with the exec file, _not_ replacing the >shell. Not true, in this case. ".cshrc" and ".login" files are *not* executed in subshells, so if you do "exec tcsh" in your ".login", "tcsh" will *replace* your login shell, not be run underneath it.