bash30-008 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.0
  4. Patch-ID: bash30-008
  5. Bug-Reported-by: uberlord@rsm.demon.co.uk
  6. Bug-Reference-ID: <1092327965.4233.1.camel@uberlaptop.ubernet>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00144.html
  8. Bug-Description:
  9. > Description:
  10. > Bash 3 breaks array expansion
  11. >
  12. > Repeat-By:
  13. > #!/bin/bash
  14. > x=(one two)
  15. > echo ${x[@]:1}
  16. > # prints nothing in bash 3
  17. > # prints two in bash 2
  18. Patch:
  19. *** ../bash-3.0/subst.c Sun Jul 4 13:56:13 2004
  20. --- subst.c Thu Aug 12 13:36:17 2004
  21. ***************
  22. *** 4892,4896 ****
  23. *e1p += len;
  24. ! if (*e1p >= len || *e1p < 0)
  25. return (-1);
  26. --- 4912,4916 ----
  27. *e1p += len;
  28. ! if (*e1p > len || *e1p < 0)
  29. return (-1);
  30. *** ../bash-3.0/patchlevel.h Wed Aug 22 08:05:39 2001
  31. --- patchlevel.h Thu Sep 2 15:04:32 2004
  32. ***************
  33. *** 26,30 ****
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 7
  36. #endif /* _PATCHLEVEL_H_ */
  37. --- 26,30 ----
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 8
  40. #endif /* _PATCHLEVEL_H_ */