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: b...@freebsd.org
          Reporter: jldu...@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.

Reply via email to