summaryrefslogtreecommitdiff
path: root/bin/ksh/lex.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-09-11 18:02:28 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-09-11 18:02:28 +0000
commit5f2b641bd1b241c22edb6c493f472a4bb446a463 (patch)
tree43e370dd483fdcff55615b0a3d92782d75181f12 /bin/ksh/lex.h
parent17f93f987c477cb6765780b9c59e7b41af5740f1 (diff)
Fix " handling in here documents. POSIX says they are not special, so
cat << EOF \" EOF should print \" Fixes PR 4472; testing jmc@ and Adam Montague. ok millert@
Diffstat (limited to 'bin/ksh/lex.h')
-rw-r--r--bin/ksh/lex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ksh/lex.h b/bin/ksh/lex.h
index ce66470b2c2..82cadf151f0 100644
--- a/bin/ksh/lex.h
+++ b/bin/ksh/lex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.h,v 1.9 2004/12/18 21:04:52 millert Exp $ */
+/* $OpenBSD: lex.h,v 1.10 2005/09/11 18:02:27 otto Exp $ */
/*
* Source input, lexer and parser
@@ -111,6 +111,7 @@ typedef union {
#define ESACONLY BIT(7) /* only accept esac keyword */
#define CMDWORD BIT(8) /* parsing simple command (alias related) */
#define HEREDELIM BIT(9) /* parsing <<,<<- delimiter */
+#define HEREDOC BIT(10) /* parsing heredoc */
#define HERES 10 /* max << in line */