svashisht / rpms / bash

Forked from rpms/bash 6 years ago
Clone
393b612
			     BASH PATCH REPORT
393b612
			     =================
393b612
393b612
Bash-Release: 3.2
393b612
Patch-ID: bash32-007
393b612
393b612
Bug-Reported-by:	jidanni@jidanni.org
393b612
Bug-Reference-ID:	<E1Gkg12-00017D-Fm@jidanni.org>
393b612
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2006-11/msg00039.html
393b612
393b612
Bug-Description:
393b612
393b612
When removing the current or previous job from the jobs list, bash incorrectly
393b612
resets the current job under some circumstances.
393b612
393b612
Patch:
393b612
393b612
*** ../bash-3.2-patched/jobs.c	Sat Jul 29 16:40:48 2006
393b612
--- jobs.c	Fri Nov 24 14:50:01 2006
393b612
***************
393b612
*** 985,990 ****
393b612
    if (temp == 0)
393b612
      return;
393b612
-   if (job_index == js.j_current || job_index == js.j_previous)
393b612
-     reset_current ();
393b612
  
393b612
    if ((dflags & DEL_NOBGPID) == 0)
393b612
--- 985,988 ----
393b612
***************
393b612
*** 1029,1032 ****
393b612
--- 1027,1033 ----
393b612
    else if (jobs[js.j_firstj] == 0 || jobs[js.j_lastj] == 0)
393b612
      reset_job_indices ();
393b612
+ 
393b612
+   if (job_index == js.j_current || job_index == js.j_previous)
393b612
+     reset_current ();
393b612
  }
393b612
393b612
*** ../bash-3.2/patchlevel.h	Thu Apr 13 08:31:04 2006
393b612
--- patchlevel.h	Mon Oct 16 14:22:54 2006
393b612
***************
393b612
*** 26,30 ****
393b612
     looks for to find the patch level (for the sccs version string). */
393b612
  
393b612
! #define PATCHLEVEL 6
393b612
  
393b612
  #endif /* _PATCHLEVEL_H_ */
393b612
--- 26,30 ----
393b612
     looks for to find the patch level (for the sccs version string). */
393b612
  
393b612
! #define PATCHLEVEL 7
393b612
  
393b612
  #endif /* _PATCHLEVEL_H_ */
393b612
393b612