Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Add a couple of comments. NFC.
details: https://anonhg.NetBSD.org/src/rev/6d3b8e41cca1
branches: trunk
changeset: 448514:6d3b8e41cca1
user: kre <kre%NetBSD.org@localhost>
date: Mon Feb 04 09:56:48 2019 +0000
description:
Add a couple of comments. NFC.
diffstat:
bin/sh/syntax.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r cdd790432f35 -r 6d3b8e41cca1 bin/sh/syntax.c
--- a/bin/sh/syntax.c Mon Feb 04 09:56:26 2019 +0000
+++ b/bin/sh/syntax.c Mon Feb 04 09:56:48 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: syntax.c,v 1.7 2018/12/03 06:40:26 kre Exp $ */
+/* $NetBSD: syntax.c,v 1.8 2019/02/04 09:56:48 kre Exp $ */
#include <sys/cdefs.h>
-__RCSID("$NetBSD: syntax.c,v 1.7 2018/12/03 06:40:26 kre Exp $");
+__RCSID("$NetBSD: syntax.c,v 1.8 2019/02/04 09:56:48 kre Exp $");
#include <limits.h>
#include "shell.h"
@@ -19,6 +19,7 @@
/* syntax table used when not in quotes */
const char basesyntax[258] = { CFAKE, CEOF,
set_range(CTL_FIRST, CTL_LAST, CCTL)
+/* Note code assumes that only the above are CCTL in basesyntax */
set('\n', CNL)
set('\\', CBACK)
set('\'', CSQUOTE)
@@ -61,6 +62,7 @@
/* syntax table used when in single quotes */
const char sqsyntax[258] = { CFAKE, CEOF,
+/* CCTL includes anything that might perhaps need to be escaped if quoted */
set_range(CTL_FIRST, CTL_LAST, CCTL)
set('\n', CNL)
set('\'', CSQUOTE)
Home |
Main Index |
Thread Index |
Old Index