summaryrefslogtreecommitdiff
path: root/shells/bash/files/patch-braces.c
blob: 49cf804cc39fd0d295059bb205478b55df40e961 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# Fix brace expansion following quoted text
#
# http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00255.html
#
--- braces.c.orig	Wed Sep  8 11:07:53 2004
+++ braces.c	Fri Sep 17 18:42:36 2004
@@ -402,7 +402,8 @@
 	{
 	  pass_next = 1;
 	  i++;
-	  level++;
+	  if (quoted == 0)
+	    level++;
 	  continue;
 	}
 #endif