From 0d7d66039b614b642c775432fd64aa8c11f9a64d Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 27 Jun 2009 21:00:39 +0800 Subject: [EXPAND] Fix quoted pattern patch breakage The change [EXPAND] Do not quote back slashes in parameter expansions outside quotes broke quote removal after parameter expansion. This is because its effecte extended beyond that of quoted patterns. This patch fixes this by limiting the change to just quoted patterns. Signed-off-by: Herbert Xu --- src/mksyntax.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/mksyntax.c') diff --git a/src/mksyntax.c b/src/mksyntax.c index 9ecbb45..7a8a9ae 100644 --- a/src/mksyntax.c +++ b/src/mksyntax.c @@ -53,7 +53,6 @@ struct synclass synclass[] = { { "CWORD", "character is nothing special" }, { "CNL", "newline character" }, { "CBACK", "a backslash character" }, - { "CDBACK", "a backslash character in double quotes" }, { "CSQUOTE", "single quote" }, { "CDQUOTE", "double quote" }, { "CENDQUOTE", "a terminating quote" }, @@ -176,7 +175,7 @@ main(int argc, char **argv) init(); fputs("\n/* syntax table used when in double quotes */\n", cfile); add("\n", "CNL"); - add("\\", "CDBACK"); + add("\\", "CBACK"); add("\"", "CENDQUOTE"); add("`", "CBQUOTE"); add("$", "CVAR"); @@ -194,7 +193,7 @@ main(int argc, char **argv) init(); fputs("\n/* syntax table used when in arithmetic */\n", cfile); add("\n", "CNL"); - add("\\", "CDBACK"); + add("\\", "CBACK"); add("`", "CBQUOTE"); add("$", "CVAR"); add("}", "CENDVAR"); -- cgit 1.4.1