Specifying which . files run with rah (Linux and UNIX)
This topics lists the . files that are run if no prefix sequence is specified.
Note: The information in this section applies to Linux® and UNIX operating systems only.
- P
- .profile
- E
- File named in $RAHENV (probably .kshrc)
- K
- Same as E
- PE
- .profile followed by file named in $RAHENV (probably .kshrc)
- B
- Same as PE
- N
- None (or Neither)
Note: If your login shell is not a Korn shell, any dot files
you specify to be executed are executed in a Korn shell process, and
so must conform to Korn shell syntax. So, for example, if your login
shell is a C shell, to have your .cshrc environment set up
for commands executed by rah, you should either
create a Korn shell INSTHOME/.profile equivalent
to your .cshrc and specify in your INSTHOME/.cshrc:
setenv RAHDOTFILES P or you should create
a Korn shell INSTHOME/.kshrc equivalent
to your .cshrc and specify in your INSTHOME/.cshrc:
setenv RAHDOTFILES E
setenv RAHENV INSTHOME/.kshrc Also, it is
your .cshrc must not write to stdout if there
is no tty (as when invoked by rsh). You can ensure this
by enclosing any lines which write to stdout by, for example, if { tty -s } then echo "executed .cshrc";
endif