Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26122 - tcsh-6.12-r2: csh.login prints /etc/motd and clutters users' homedirs with useless files and other oddities
Summary: tcsh-6.12-r2: csh.login prints /etc/motd and clutters users' homedirs with us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-07 06:43 UTC by Reporter
Modified: 2005-09-30 12:36 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 Reporter 2003-08-07 06:43:11 UTC
if a user's login shell is /bin/tcsh, /etc/motd is displayed 
twice, once by pam_motd (as it should be) and once again by 
csh.login (rather unusual). 
To prevent motd from being printed again unless it has changed, 
csh.login makes a copy(!!!) of /etc/motd in every user's homedir 
to be able to detect differences to the one in /etc!!!


Also, on every login ~/.tcsh.config is created if it doesn't 
exist. Since the settings in this file cover only a (very) 
tiny subset of what users usually have in their private 
.tcshrc, they'll have to have one anyway. Seems more 
annoying than useful to me. Tcsh users usually know what 
they're doing and don't need this kind of nonsense!


Also, is there a particular reason PATH is in a different order 
for tcsh users? 

bash: echo $PATH
/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:\
/usr/X11R6/bin

tcsh: echo $PATH
/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:\
/usr/X11R6/bin:/bin:/usr/bin

Positive aspect here, /usr/local/bin comes first as it does on 
almost every known UN*X system, although /bin and /usr/bin are 
still in the wrong order (reasoning: you are supposed to be able 
to override small binaries with reduced functionality in /bin 
with more full-featured ones in /usr/bin once /usr becomes 
available, f.ex. small vi (elvis) in /bin; vim (linked to X-libs) 
in /usr/bin. This way you can repair config files using elvis if 
/usr is unavailable, and use vim if the system is fully up. With 
/bin first in PATH, however, this won't work!)

Still, regardless of gentoo's PATH policy, I'd even more prefer 
a uniform PATH for all users regardless of their shell preferences.
Comment 1 Fabian Groffen gentoo-dev 2005-09-27 13:26:14 UTC
note to self:
- motd issue resolved
- .tcsh.config is now only copied if no .tcshrc exists (allows removal of the file)
- fixed path to reflect current bash setting: /usr/local/bin /usr/bin /bin
/opt/bin $path
Comment 2 Fabian Groffen gentoo-dev 2005-09-30 12:36:03 UTC
Fixed in 6.14-r1

Redid whole config system, to have much more cleaner defaults which should
certainly resolve all the mentioned issues.