[gnu.bash.bug] checking for mail in non-interactive shell?

lamy@ai.utoronto.ca (Jean-Francois Lamy) (08/03/89)

Another one for gnu.bash.ufo:

Scenario: am in GNU emacs, and type the C-@C-uM-| invocation that results in
running a command in a subshell and replacing the currently selected piece of
text with the result.  Much to my surprise, a "You have mail in ..." string
appears in the output, which I can only attribute to bash being silly or to
some rather interesting file descriptor mix up.  Does bash really check for
mail in non-interactive shells???

Jean-Francois Lamy               lamy@ai.utoronto.ca, uunet!ai.utoronto.ca!lamy
AI Group, Department of Computer Science, University of Toronto, Canada M5S 1A4