bash30-012 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.0
  4. Patch-ID: bash30-012
  5. Bug-Reported-by: ben@ncipher.com
  6. Bug-Reference-ID: <E1BxQYe-0002p1-00@berdoo.ncipher.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00215.html
  8. Bug-Description:
  9. When using the pipefail option, the following command:
  10. echo foo | false
  11. produces an exit status of 0, ignoring the exit status of false.
  12. Patch:
  13. *** ../bash-3.0/jobs.c Fri Apr 23 16:28:25 2004
  14. --- jobs.c Wed Aug 18 11:15:07 2004
  15. ***************
  16. *** 1779,1784 ****
  17. {
  18. fail = 0;
  19. ! for (p = jobs[job]->pipe; p->next != jobs[job]->pipe; p = p->next)
  20. ! if (p->status != EXECUTION_SUCCESS) fail = p->status;
  21. return fail;
  22. }
  23. --- 1779,1789 ----
  24. {
  25. fail = 0;
  26. ! p = jobs[job]->pipe;
  27. ! do
  28. ! {
  29. ! if (p->status != EXECUTION_SUCCESS) fail = p->status;
  30. ! p = p->next;
  31. ! }
  32. ! while (p != jobs[job]->pipe);
  33. return fail;
  34. }
  35. *** ../bash-3.0/patchlevel.h Wed Aug 22 08:05:39 2001
  36. --- patchlevel.h Thu Sep 2 15:04:32 2004
  37. ***************
  38. *** 26,30 ****
  39. looks for to find the patch level (for the sccs version string). */
  40. ! #define PATCHLEVEL 11
  41. #endif /* _PATCHLEVEL_H_ */
  42. --- 26,30 ----
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 12
  45. #endif /* _PATCHLEVEL_H_ */