tcsh - some more questions

Guy Harris guy at auspex.UUCP
Wed Mar 22 06:19:39 AEST 1989


 >>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.



More information about the Comp.unix.wizards mailing list