Article View: gnu.bash.bug
Article #1018"bash" checks for mail even when interactive
From: Brian Fox
Date: Tue, 13 Jun 1989 00:32
Date: Tue, 13 Jun 1989 00:32
41 lines
1937 bytes
1937 bytes
Date: Mon, 12 Jun 89 16:52:19 PDT
From: guy@bootme.auspex.com (Guy Harris)
"bash" checks for mail even when interactive Which isn't too cool,
since that causes messages to get printed even if the shell was fired
up by "rsh", and that causes things like "rcp" to fall flat on their
face....
Yes, that was true, but I have fixed it in the upcoming 1.00 release.
The fix does NOT belong in parse.y, so remove it.
*** parse.y.orig Mon Jun 12 16:45:34 1989
--- parse.y Mon Jun 12 16:46:27 1989
***************
*** 890,895 ****
--- 890,896 ----
the last two tokens read, and calls read_token. */
yylex ()
{
+ extern int interactive;
extern int prompt_printable;
extern char *decode_prompt_string ();
***************
*** 901,907 ****
We do this only if it is time to do so. Notice that only here
is the mail alarm reset; nothing takes place in check_mail ()
except the checking of mail. Please don't change this. */
! if (time_to_check_mail ())
{
check_mail ();
reset_mail_timer ();
--- 902,908 ----
We do this only if it is time to do so. Notice that only here
is the mail alarm reset; nothing takes place in check_mail ()
except the checking of mail. Please don't change this. */
! if (interactive && time_to_check_mail ())
{
check_mail ();
reset_mail_timer ();
Technical Details
Message-ID:
<8906130032.AA12993@aurel.caltech.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfoxReferences:
<8906122352.AA27451@bootme.auspex.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!AUREL.CALTECH.EDU!bfox From: bfox@AUREL.CALTECH.EDU (Brian Fox) Newsgroups: gnu.bash.bug Subject: "bash" checks for mail even when interactive Message-ID: <8906130032.AA12993@aurel.caltech.edu> Date: 13 Jun 89 00:32:31 GMT References: <8906122352.AA27451@bootme.auspex.com> Sender: daemon@tut.cis.ohio-state.edu Reply-To: bfox@ai.mit.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 41