Bug 115376 - /etc/csh.cshrc does not specify MAIL env var, as does /etc/profile
/etc/csh.cshrc does not specify MAIL env var, as does /etc/profile
Product: Fedora
Classification: Fedora
Component: setup (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-02-11 11:48 EST by Scott R. Godin
Modified: 2014-03-16 22:42 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-04 23:18:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Scott R. Godin 2004-02-11 11:48:16 EST
Description of problem:
/etc/csh.cshrc does not specify the value of the MAIL environment
variable, as does /etc/profile for bash

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. install fedora core
2. set your shell to tcsh instead of bash
3. fire up xterm, type env | grep -i mail 
Actual results:
.. notice the absence of MAIL 

Expected results:
MAIL = /var/spool/mail/$USER

Additional info:

adding the line 

    setenv MAIL "/var/spool/mail/$USER"

to /etc/csh.cshrc solves the problem. This should be accomplished
before the next Fedora Core release, due to the simplicity of the change.
Comment 1 Bill Nottingham 2004-05-04 23:18:43 EDT
Added in 2.5.32-1
Comment 2 Charles R. Anderson 2004-05-05 15:40:11 EDT
The line that was added is Bourne shell syntax, not C Shell syntax:


I see the syntax error on login with tcsh:

MAIL=/var/spool/mail/cra: Command not found.

This needs to be changed to:

setenv MAIL "/var/spool/mail/$USER"

as suggested above.
Comment 3 Nalin Dahyabhai 2004-05-05 15:51:19 EDT
Fixing for 2.5.33-1.

Note You need to log in before you can comment on or make changes to this bug.