diff options
author | jilles <jilles@FreeBSD.org> | 2010-10-24 22:25:38 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-10-24 22:25:38 +0000 |
commit | 51f0756257f4101578920ca0e00c705dd2e1163b (patch) | |
tree | ade424f7898169ec8c5b9d51282690b7751e31e9 /bin/sh/mksyntax.c | |
parent | 58038d3e9e1f45ea4dccdfeb21e3f9bb40ae4950 (diff) | |
download | FreeBSD-src-51f0756257f4101578920ca0e00c705dd2e1163b.zip FreeBSD-src-51f0756257f4101578920ca0e00c705dd2e1163b.tar.gz |
sh: Ignore double-quotes in arithmetic rather than treating them as quotes.
This provides similar behaviour, but allows a simpler parser.
This changes r206473.
Exp-run done by: pav (with some other sh(1) changes)
Diffstat (limited to 'bin/sh/mksyntax.c')
-rw-r--r-- | bin/sh/mksyntax.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/mksyntax.c b/bin/sh/mksyntax.c index e63f0d6..e4c4d14 100644 --- a/bin/sh/mksyntax.c +++ b/bin/sh/mksyntax.c @@ -75,6 +75,7 @@ struct synclass synclass[] = { { "CEOF", "end of file" }, { "CCTL", "like CWORD, except it must be escaped" }, { "CSPCL", "these terminate a word" }, + { "CIGN", "character should be ignored" }, { NULL, NULL } }; @@ -232,7 +233,7 @@ main(int argc __unused, char **argv __unused) add("\n", "CNL"); add("\\", "CBACK"); add("`", "CBQUOTE"); - add("\"", "CDQUOTE"); + add("\"", "CIGN"); add("$", "CVAR"); add("}", "CENDVAR"); add("(", "CLP"); |