|
|
ff19ae |
BASH PATCH REPORT
|
|
|
ff19ae |
=================
|
|
|
ff19ae |
|
|
|
ff19ae |
Bash-Release: 4.2
|
|
|
ff19ae |
Patch-ID: bash42-007
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Reported-by: Matthias Klose <doko@debian.org>
|
|
|
ff19ae |
Bug-Reference-ID: <4D6FD2AC.1010500@debian.org>
|
|
|
ff19ae |
Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00015.html
|
|
|
ff19ae |
|
|
|
ff19ae |
Bug-Description:
|
|
|
ff19ae |
|
|
|
ff19ae |
When used in contexts where word splitting and quote removal were not
|
|
|
ff19ae |
performed, such as case statement word expansion, empty strings
|
|
|
ff19ae |
(either literal or resulting from quoted variables that were unset or
|
|
|
ff19ae |
null) were not expanded correctly, resulting in failure.
|
|
|
ff19ae |
|
|
|
ff19ae |
Patch (apply with `patch -p0'):
|
|
|
ff19ae |
|
|
|
ff19ae |
*** ../bash-4.2-patched/subst.c 2011-02-25 12:03:58.000000000 -0500
|
|
|
ff19ae |
--- subst.c 2011-03-03 14:08:23.000000000 -0500
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 4609,4614 ****
|
|
|
ff19ae |
--- 4611,4617 ----
|
|
|
ff19ae |
if (ifs_firstc == 0)
|
|
|
ff19ae |
#endif
|
|
|
ff19ae |
word->flags |= W_NOSPLIT;
|
|
|
ff19ae |
+ word->flags |= W_NOSPLIT2;
|
|
|
ff19ae |
result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
|
|
|
ff19ae |
expand_no_split_dollar_star = 0;
|
|
|
ff19ae |
|
|
|
ff19ae |
*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
|
|
|
ff19ae |
--- patchlevel.h Thu Feb 24 21:41:34 2011
|
|
|
ff19ae |
***************
|
|
|
ff19ae |
*** 26,30 ****
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 6
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|
|
|
ff19ae |
--- 26,30 ----
|
|
|
ff19ae |
looks for to find the patch level (for the sccs version string). */
|
|
|
ff19ae |
|
|
|
ff19ae |
! #define PATCHLEVEL 7
|
|
|
ff19ae |
|
|
|
ff19ae |
#endif /* _PATCHLEVEL_H_ */
|