SUMMARY: initialisation/ start-up files for Bourne, C and Korn Shell

From: Hee_Meng_HO@lta.gov.sg
Date: Tue Nov 21 2000 - 21:09:01 CST


First of all, my apologies for this question. Should have RTFM first.
Thanks to amosmail and Michael Hill for pointing out. I understand the
general concerns. I too hate to receive questions that could have been
answered if RTFM is sufficient. My sincerest apologies.

Nevertheless, please bear with me as I've promised to summarise this
question:

Original question:
I need to know exactly how many initialisation or start-up files are there
for Bourne, C and Korn Shell

For Bourne & Korn Shell, I gather the following:
/etc/profile
/.profile
/export/home/userA/.profile

For C Shell, it is:
/.profile
/export/home/userB/.login
/etc/.cshrc

My Questions:
1) Did I list them correctly with their paths?
2) For each shell, which are executed first and what are their precedence
over another?
3) What do we mean by environment control files? Are they actually
referring to the initialisation or start-up files?

Answer:
1) Some of the paths listed are incorrect (see below). Also, /.profile is
not used by C Shell. It is the ~user/.profile for root

2) For Bourne & Korn shell, it goes in order like this - /etc/profile
followed by ~user/.profile
For C Shell, it goes like this - /etc/.login followed by ~user/.cshrc
followed by ~user/.login
Note that /etc/profile and /etc/.login are *system-wide* initialisation
files. The rest are user-specific.

3) No one answered this. The man pages does refer to "environment
variables" but not "environment control files". From man environ, the
following files - $HOME/pref/.environ & $HOME/pref/.variables store
variables that indicate user preferences for a variety of operations. I
guess these are the "environment control files". Please correct me if I'm
wrong. Also, I think the profile, .profile, .cshrc,.login files can be
considered as "environment control files" as well since they also contain
some environment variables.

Lastly, thanks to:
1) Casper Dik
2) Dieter Gobbers
3) system administration account (from astro)

cheers!
heemeng

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:23 CDT