tcsh - some more questions

Mark A. Heilpern heilpern at ibd.BRL.MIL
Sat Mar 18 05:58:09 AEST 1989


In article <18686 at srcsip.UUCP> rogers at 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 at brl.mil

-- 
 |\/|         |
 |  |   _     |<
/    \_(_(_)\_/ \______



More information about the Comp.unix.wizards mailing list