[Bug 285514] sh: Display "you have mail" message when there is mail
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285514] sh: Display "you have mail" message when there is mail"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285514] sh: Display "you have mail" message when there is mail"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 285514] /bin/sh: Display "you have mail" message when there is mail"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Mar 2025 22:27:56 UTC
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.