🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #740

job control turned off. bad code in flags.c

#740
From: Andrew Thomas
Date: Fri, 17 Nov 1989 01:48
21 lines
1010 bytes
The function change_flag has the following piece of code:

#ifdef JOB_CONTROL
  /* Special hack for the -m flag. */
  if (value == &jobs_m_flag)
    {
      extern set_job_control ();
      set_job_control (!on_or_off);
    }
#endif  /* JOB_CONTROL */

The value of  on_or_off  can be one of 43 or 45 corresponding to the
characters  + and - .  This means simply that if this piece of code is
ever called, it will turn off job control.  Always.

--

Andrew Thomas
andrewt@watsnew.waterloo.edu	Systems Design Eng.	University of Waterloo
"If a million people do a stupid thing, it's still a stupid thing." - Opus
Technical Details
Message-ID: <ANDREWT.89Nov16204823@watsnew.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!andrewt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watcgl!andrewt
From: andrewt@watsnew.waterloo.edu (Andrew Thomas)
Newsgroups: gnu.bash.bug
Subject: job control turned off.  bad code in flags.c
Message-ID: <ANDREWT.89Nov16204823@watsnew.waterloo.edu>
Date: 17 Nov 89 01:48:23 GMT
Sender: daemon@watcgl.waterloo.edu
Organization: University of Waterloo, Waterloo, Ontario, Canada
Lines: 21