[gnu.bash.bug] job control turned off. bad code in flags.c

andrewt@watsnew.waterloo.edu (Andrew Thomas) (11/17/89)

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