Perhaps this is a question for the bash list, but why, when I have MAILCHECK=$((0 - 1)) export MAILCHECK MAILDIR="~/Maildir/" MAIL=$MAILDIR export MAILDIR MAIL does bash insist on checking for mail in my very large, nfs-mounted, maildir-format mailbox? When I comment out MAIL, the mail checking stops. However, according to the man page, setting MAILCHECK to a number less than 0 or unsetting it should also stop mail checking. Clearly, 0 minus 1 is less than 0, though I've also tried setting it to -1, "-1", and unsetting it. I've tried exporting it and not exporting it. Why won't bash behave like the man page says it will behave? Waiting nearly a minute between an xterm starting up and the prompt actually appearing is rather annoying - it's instant when MAIL is undefined (or when I run "xterm +ls -e bash -norc" - but then my environment isn't set up all pretty-like). Tips? Suggestions? I don't really need MAIL to be set, I think, but I'd rather solve this the "right" way... Thanks. --Danny
SuSE wrote regarding '[SLE] bash mailcheck behavior' on Thu, Jan 20 at 12:01:
Perhaps this is a question for the bash list, but why, when I have
MAILCHECK=$((0 - 1)) export MAILCHECK MAILDIR="~/Maildir/" MAIL=$MAILDIR export MAILDIR MAIL
does bash insist on checking for mail in my very large, nfs-mounted, maildir-format mailbox? When I comment out MAIL, the [...]
Oh, horse poo. Reading a bit closer, it appears that I can set MAILPATH="$MAIL", and then MAILCHECK is obvserved. What a bunch of stupid. Remind me to gripe at the bash developers or something. --Danny, not at all pleased that it took public admission of a problem in order to solve said problem ;)
--Danny, not at all pleased that it took public admission of a problem in order to solve said problem ;)
Isn't that how it always works? Mabye that's Moore's Law Squared or something. That usually happens to me, start explaining my problem to someone and 3 new options for solutions occur to me at that time. And usually while i'm typing up questions for a list I starting thinking how I can check google for this or that and usually start finding closer answers to my questions. Ugg... BB
On Thursday 20 January 2005 13:16, Brad Bendily wrote:
--Danny, not at all pleased that it took public admission of a problem in order to solve said problem ;)
Isn't that how it always works? Mabye that's Moore's Law Squared or something. That usually happens to me, start explaining my problem to someone and 3 new options for solutions occur to me at that time. And usually while i'm typing up questions for a list I starting thinking how I can check google for this or that and usually start finding closer answers to my questions.
For me the revelation usually occurs when I'm reading my own post thinking "Who is this moron that can't figure out such a basic problem... doh!" Maybe clicking "send" actually makes you smarter. That would also explain why we see so many answers from smart people :-/ Jeff
participants (3)
-
Brad Bendily
-
Danny Sauer
-
Jeffrey Laramie