Path: utzoo!attcan!uunet!husc6!cmcl2!adm!smoke!ibd!heilpern From: heilpern@ibd.BRL.MIL (Mark A. Heilpern ) Newsgroups: comp.unix.wizards Subject: Re: tcsh - some more questions Message-ID: <254@ibd.BRL.MIL> Date: 17 Mar 89 19:58:09 GMT References: <52992@yale-celray.yale.UUCP> <18686@srcsip.UUCP> Reply-To: heilpern@brl.arpa (Mark A. Heilpern (IBD) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 30 In article <18686@srcsip.UUCP> rogers@falcon.UUCP (Brynn Rogers) writes: >A few people here including me are starting to use tcsh. > > >1) Where should I 'exec tcsh' or 'exec -tcsh'? > In my .cshrc file? with 'if (! $?tcsh) exec -tcsh' for example? > In my .login file? > >2) should 'set history=100 ; set savehist=100' be done before > entry into tcsh or after? I can't get history to work anymore. > (when I invoked tcsh manually the history seemed to work fine.) 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. If you don't want to always use tcsh, then you've got to exec tcsh by hand from the shell level. To always use tcsh, there is a command called 'chsh' for change shell. Consult your man page for specifics. Note: if the location of tcsh on your system is not in /bin or /usr/bin, you will have to have a super-user make the change for you. Set your hist variables from within .tcshrc Mark A. Heilpern, heilpern@brl.mil -- |\/| | | | _ |< / \_(_(_)\_/ \______