Subject: CVS commit: basesrc/bin/sh
To: None <source-changes@netbsd.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 02/12/2002 22:32:38
Module Name: basesrc
Committed By: christos
Date: Tue Feb 12 20:32:37 UTC 2002
Modified Files:
basesrc/bin/sh: mksyntax.c parser.c
Log Message:
Since we should be able to handle nested double quotes, don't use
the syntax maps to determine the beginning and end quotes (kill
CENDQUOTE). Handle single quotes opening and closing via checking
the current syntax map. Keep a bitmap of doublequote state one bit
per variable nesting level. For the first 32 nested double quotes,
we don't need any additional memory, but for more we allocate
dynamically.
To generate a diff of this commit:
cvs rdiff -r1.23 -r1.24 basesrc/bin/sh/mksyntax.c
cvs rdiff -r1.50 -r1.51 basesrc/bin/sh/parser.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.