7 Bug-Reported-by: Mark Edgar <medgar123@gmail.com>
8 Bug-Reference-ID: <CABHMh_3d+ZgO_zaEtYXPwK4P7tC0ghZ4g=Ue_TRpsEMf5YDsqw@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-03/msg00109.html
13 When using a word expansion for which the right hand side is evaluated,
14 certain expansions of quoted null strings include spurious ^? characters.
16 Patch (apply with `patch -p0'):
20 @@ -5809,6 +5809,16 @@ parameter_brace_expand_rhs (name, value,
21 is the only expansion that creates more than one word. */
22 if (qdollaratp && ((hasdol && quoted) || l->next))
24 + /* If we have a quoted null result (QUOTED_NULL(temp)) and the word is
25 + a quoted null (l->next == 0 && QUOTED_NULL(l->word->word)), the
26 + flags indicate it (l->word->flags & W_HASQUOTEDNULL), and the
27 + expansion is quoted (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES))
28 + (which is more paranoia than anything else), we need to return the
29 + quoted null string and set the flags to indicate it. */
30 + if (l->next == 0 && (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) && QUOTED_NULL(temp) && QUOTED_NULL(l->word->word) && (l->word->flags & W_HASQUOTEDNULL))
32 + w->flags |= W_HASQUOTEDNULL;
36 else if ((quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES)) && hasdol)
40 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
41 looks for to find the patch level (for the sccs version string). */
43 -#define PATCHLEVEL 27
44 +#define PATCHLEVEL 28
46 #endif /* _PATCHLEVEL_H_ */