🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #414

checking for mail in non-interactive shell?

#414
From: Jean-Francois Lamy
Date: Thu, 03 Aug 1989 03:32
11 lines
905 bytes
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
Technical Details
Message-ID: <89Aug2.233140edt.10404@neat.cs.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.cs.toronto.edu!lamy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!neat.cs.toronto.edu!lamy
Newsgroups: gnu.bash.bug
From: lamy@ai.utoronto.ca (Jean-Francois Lamy)
Subject: checking for mail in non-interactive shell?
Message-ID: <89Aug2.233140edt.10404@neat.cs.toronto.edu>
Date: 3 Aug 89 03:32:34 GMT