🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #1017

"bash" checks for mail even when interactive

#1017
From: Guy Harris
Date: Mon, 12 Jun 1989 23:52
33 lines
1541 bytes
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....

*** 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: <8906122352.AA27451@bootme.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bootme.auspex.com!guy

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!bootme.auspex.com!guy
From: guy@bootme.auspex.com (Guy Harris)
Newsgroups: gnu.bash.bug
Subject: "bash" checks for mail even when interactive
Message-ID: <8906122352.AA27451@bootme.auspex.com>
Date: 12 Jun 89 23:52:19 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 33