Re: where environment variable MAIL was set?

2007-03-30 Thread Jerry McAllister
On Fri, Mar 30, 2007 at 05:07:35PM +0800, 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?

Or, you could just do a mutt -f /var/mail/root

jerry
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: where environment variable MAIL was set?

2007-03-30 Thread Zheng Tianyu
Problem solved.

Thank you.


Zheng Tianyu

On Fri, Mar 30, 2007 at 10:59:36AM +0100, Vince wrote:
> 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 "[EMAIL PROTECTED]"
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: where environment variable MAIL was set?

2007-03-30 Thread Vince
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 "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"