On 8/11/11 6:23 AM, Martin von Gagern wrote:
> Hi!
> 
> I often get a bash message about new mail during command line completion.
> 
> Steps to reproduce:
> Type "ls ~/.bas" and press tab.
> 
> Expected result:
> Command line completed to "ls ~/.bash" or whatever is right.
> 
> Actual result:
> If new mails have arrived, the mail check is performed when pressing
> tab, rendering the whole command line like this:
> 
> $ ls ~/.basYou have mail in /var/mail/user
> h
> 
> This is a real problem for both readability and subsequent editing of
> the command line.

I suspect that you have a completion defined for `ls' and it's running a
command or process substitution that's causing the mail check.  Can you
run `set -x', then attempt the completion again and post the results?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to