Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: .exrc Up: Environment Previous: aipsrc

Subsections



.cshrc

AIPS++ .cshrc file.

Synopsis

source .cshrc

Description

The .cshrc file which resides in $AIPSROOT is installed there as part of the AIPS++ system to provide a minimal environment in C-like shells (csh, tcsh) for the AIPS++ manager.

If inhale (p[*]) is being run to keep the AIPS++ installation in step with the master then any changes made to this file would be overwritten whenever the system master was modified. Additional definitions or redefinitions may instead be made in a separate .cshrc_local file which is invoked by .cshrc as its last operation.

The commands contained in .cshrc are executed immediately upon login and upon creation of every C-shell. They usually consist of definitions of aliases and C-shell variables since these are not inherited by subprocesses, although certain important shell variables (argv, cwd, home, path, prompt, shell, status, term, and user) are automatically set.

Environment variable definitions are normally made in the .login file since the environment is automatically inherited by every subprocess. This includes PATH and MANPATH in particular. However, remote shells such as are activated by rsh do not read the .login file (assuming that csh is the default login shell). If these environment variables need to be defined automatically in such cases the following line should be added to the .cshrc_local file

   if (! $?term) source $AIPSROOT/.login

Note, however, that the .rshexec (p[*]) command should normally be used for remote execution.

The C-shell startup files are read in the following order:

   .cshrc
   .cshrc_local
   .login
   .login_local

See also

AIPS++ variable names (§1.2).
aipsinit (p[*]), AIPS++ initialization procedure.
.login (p[*]), aips2mgr's .login file.
.profile (p[*]), aips2mgr's .profile file.
.prompt (p[*]), Set the C-shell prompt variable.
.rshexec (p[*]), AIPS++ remote execution utility.

Author

Original: 1992/05/01 by Mark Calabretta, ATNF.


next up previous contents index
Next: .exrc Up: Environment Previous: aipsrc   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15