Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13579 - TCSH does not load /etc/csh.login as root -- wrong csh.login script.
Summary: TCSH does not load /etc/csh.login as root -- wrong csh.login script.
Status: RESOLVED DUPLICATE of bug 5699
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 11:09 UTC by Alain Penders (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alain Penders (RETIRED) gentoo-dev 2003-01-09 11:09:59 UTC
When starting tcsh 6.12 as root, it does not source /etc/csh.login.  Even though
the tcsh man page does not seem to mention this behaviour, it's apparently
standard (Suse 7.3's tcsh behaves the same).  Gentoo's tcsh scripts rely on
csh.login to set the PROMPT variable, which doesn't work for root.
Comment 1 Arthur Britto 2003-01-12 20:27:37 UTC
tcsh seems to load /etc/csh.login for me.  I confirmed this by adding a echo
foobar to it.

Are you staring tcsh with the '-l' flag?
Comment 2 Alain Penders (RETIRED) gentoo-dev 2003-01-12 21:43:30 UTC
I looked a bit more at this problem, and tcsh seems to be behaving correctly --
it only sources csh.login when it's a login shell.   When opening up a KDE
Terminal, for example, it's not a login shell, and csh.login is (correctly) not
sources.

This however means that the aliases and the prompt aresn't set to anything
sensible when using a KDE Terminal shell.  These should be set in csh.cshrc, and
csh.login should only contain things that are relevant only to login shells.

Ideally tcsh should come with csh.login and csh.cshrc files that have some
intelligence in them, similar to the ones found with the SuSE tcsh.  Seems like
most of the stuff in those are based on open source config files that were
published with tcsh in the past.  So maybe time to start a gentoo set.
Comment 3 SpanKY gentoo-dev 2003-01-12 21:50:58 UTC

*** This bug has been marked as a duplicate of 5699 ***
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 16:55:09 UTC
Ill have to agree that our tcsh support is not what it should be.  I however
do not use it, so would not want to mess with it.  If you can get a sane
setup working that some dev that uses tcsh can verify, feel free to open a new
bug.