* ORDER of .cshrc and .login
@ 1996-09-18 4:00 Bob Blank
1996-09-19 4:00 ` Martin Moore
1996-09-19 4:00 ` Mike Iglesias
0 siblings, 2 replies; 4+ messages in thread
From: Bob Blank @ 1996-09-18 4:00 UTC (permalink / raw)
For some strange reason, my users .cshrc file is
excuting before their .login.
HELP?!?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ORDER of .cshrc and .login
1996-09-18 4:00 ORDER of .cshrc and .login Bob Blank
@ 1996-09-19 4:00 ` Martin Moore
1996-09-20 4:00 ` Jon Forrest
1996-09-19 4:00 ` Mike Iglesias
1 sibling, 1 reply; 4+ messages in thread
From: Martin Moore @ 1996-09-19 4:00 UTC (permalink / raw)
Bob Blank (bblank@grci.com) wrote:
: For some strange reason, my users .cshrc file is
: excuting before their .login.
: HELP?!?
The strange reason is that's the way it's supposed to work. From 'man csh':
If csh runs as a login shell, it executes commands from the
system-wide login file /etc/csh.login, if that file exists, and then com-
mands from your $home/.cshrc file and your $home/.login file, in that
order.
--
Martin J. Moore 5555 Windward Parkway West
Digital UNIX Support Alpharetta GA 30201-7407
Digital Equipment Corporation 1-800-354-9000 x31679
martin@alf.dec.com DECATL::MARTIN
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ORDER of .cshrc and .login
1996-09-19 4:00 ` Martin Moore
@ 1996-09-20 4:00 ` Jon Forrest
0 siblings, 0 replies; 4+ messages in thread
From: Jon Forrest @ 1996-09-20 4:00 UTC (permalink / raw)
In article <51rfo6$nqp@netnews.alf.dec.com>,
Martin Moore <martin@decatl.alf.dec.com> wrote:
>Bob Blank (bblank@grci.com) wrote:
>: For some strange reason, my users .cshrc file is
>: excuting before their .login.
>
>: HELP?!?
>
>The strange reason is that's the way it's supposed to work. From 'man csh':
That's right but in thinking about this I've been wondering why
this is true. Conceptually I would have expected what the original
poster of the thread thought - that .login would be executed first
so that it could setup the basic environment, and the .cshrc
would be executed.
Does anybody have any comments on the reason for this?
--
Anything you read here is my opinion and in no way represents the Univ. of Cal.
"I deal with dreamers, and telephone screamers." -- Joni Mitchell
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ORDER of .cshrc and .login
1996-09-18 4:00 ORDER of .cshrc and .login Bob Blank
1996-09-19 4:00 ` Martin Moore
@ 1996-09-19 4:00 ` Mike Iglesias
1 sibling, 0 replies; 4+ messages in thread
From: Mike Iglesias @ 1996-09-19 4:00 UTC (permalink / raw)
In article <323FAEF4.5F24@grci.com>, Bob Blank <bblank@grci.com> wrote:
>For some strange reason, my users .cshrc file is
>excuting before their .login.
If you take a look at the csh(1) man page, you'll find this pretty close
to the top:
When you run csh, it begins by executing commands from the file .cshrc in
your home directory, if it exists. If the shell is invoked with a name
that starts with -, as when started by login, the shell runs as a login
shell. If csh runs as a login shell, it executes commands from the
system-wide login file /etc/csh.login, if that file exists, and then com-
mands from your $home/.cshrc file and your $home/.login file, in that
order.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 824-6926
Office of Academic Computing FAX: (714) 824-2069
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-09-20 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-18 4:00 ORDER of .cshrc and .login Bob Blank
1996-09-19 4:00 ` Martin Moore
1996-09-20 4:00 ` Jon Forrest
1996-09-19 4:00 ` Mike Iglesias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox