diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-27 21:00:39 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-27 21:00:39 +0800 |
commit | 0d7d66039b614b642c775432fd64aa8c11f9a64d (patch) | |
tree | 2b6b9b1e63aa6ffc0c65f3a359c7e22672b223e3 /src/mksyntax.c | |
parent | [REDIR] Fix incorrect savefd conversions (diff) | |
download | dash-0d7d66039b614b642c775432fd64aa8c11f9a64d.tar.gz dash-0d7d66039b614b642c775432fd64aa8c11f9a64d.zip |
[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 <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | src/mksyntax.c | 5 |
1 files changed, 2 insertions, 3 deletions
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"); |