Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2007 10:59:36 +0100
From:      Vince <jhary@unsane.co.uk>
To:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: where environment variable MAIL was set?
Message-ID:  <460CDF88.90002@unsane.co.uk>
In-Reply-To: <20070330090734.GA1336@airfish.power.org>
References:  <20070330090734.GA1336@airfish.power.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Zheng Tianyu wrote:
> Hi, All
> 
> My account name is airfish, after I sued to root, I found that the 
> environment variable MAIL remained MAIL=/var/mail/airfish. As a result,
> when I start mutt, it opens the airfish's mailbox. That's not what i
> desired. But I can't find where the MAIL is set. Should I unsetenv MAIL
> in my root's login file?

>From the manpage:
 By default, the environment is unmodified with the exception of USER,
     HOME, and SHELL.

and


-l      Simulate a full login.  The environment is discarded except for
             HOME, SHELL, PATH, TERM, and USER.  HOME and SHELL are
	     modified as above.

Vince
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?460CDF88.90002>