Mailcheck and pseudo message in a mailbox

2009-10-03 Thread Yarda
With bash-4.0 the mailcheck behaviour is annoying when there is a pseudo
message in a mailbox, e.g.:

-
#cat /var/mail/yarda
>From MAILER-DAEMON Wed Sep 30 14:07:09 2009
Date: 30 Sep 2009 14:07:09 +0200
From: Mail System Internal Data 
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
Message-ID: <1254312...@onyx.mbox.eu>
X-IMAP: 1254311191 02
Status: RO

This text is part of the internal format of your mail folder, and is not
a real message.  It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.

-

When the bash starts it reports:
You have mail in /var/mail/yarda

It is very annoying especially in cases when starting bash frequently
(e.g. from Midnight commander), because this message appears frequently.

I think the bash should understand the pseudo message or there should be
a switch for disabling old mail reporting.

Or is there any way how to get rid of this message without removing
metadata from mailbox or disabling mailcheck entirely?




Bash history weirdness

2009-10-03 Thread John
Hi,

Bash's history command is behaving oddly.

If I do "history -w" then it writes the current history to
~/.bash_history as expected.

But if I do "history -a" then ~/.bash_history doesn't get changed, and
from the modification time it hasn't been touched at all.

Any ideas for what might be causing this? Any obvious shell options or
suchlike that I should check?

Cheers,
John