Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2025 22:27:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 285514] sh: Display "you have mail" message when there is mail
Message-ID:  <bug-285514-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285514

            Bug ID: 285514
           Summary: sh: Display "you have mail" message when there is mail
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jlduran@FreeBSD.org

I believe /bin/sh should display the message "you have mail" whenever there is
mail, much like /bin/tcsh does.

For example:

    [sh] # mail -s test root
    test
    <CTRL+D>EOT
    [sh] # sh
    <no "you have mail" message>
    [sh] #

Compared with /bin/tcsh:

    [tcsh] # mail -s test root
    test
    <CTRL+D>EOT
    [tcsh] # csh
    You have mail.
    [tcsh] #

The functionality seems to be almost there, but it is not clear to me why is
implemented that way.

Attached is a minimal change that should allow this to happen.

After the patch:

    [sh] # mail -s test root
    test
    <CTRL+D>EOT
    [sh] # sh
    you have mail
    [sh] #

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285514-227>