Blame SOURCES/bash-4.2-brace-expand.patch

462fb2
diff --git a/braces.c b/braces.c
462fb2
index 2febed7..61c1ab1 100644
462fb2
--- a/braces.c
462fb2
+++ b/braces.c
462fb2
@@ -529,6 +529,11 @@ brace_gobbler (text, tlen, indx, satisfy)
462fb2
	{
462fb2
	  if (c == quoted)
462fb2
	    quoted = 0;
462fb2
+#if defined (SHELL)
462fb2
+         /* The shell allows quoted command substitutions */
462fb2
+         if (quoted == '"' && c == '$' && text[i+1] == '(')    /*)*/
462fb2
+           goto comsub;
462fb2
+#endif
462fb2
	  ADVANCE_CHAR (text, tlen, i);
462fb2
	  continue;
462fb2
	}
462fb2
@@ -551,6 +556,7 @@ brace_gobbler (text, tlen, indx, satisfy)
462fb2
       /* Pass new-style command and process substitutions through unchanged. */
462fb2
       if ((c == '$' || c == '<' || c == '>') && text[i+1] == '(')			/* ) */
462fb2
	{
462fb2
+comsub:
462fb2
	  si = i + 2;
462fb2
	  t = extract_command_subst (text, &si, 0);
462fb2
	  i = si;