diff --git a/bin/sh/parser.c b/bin/sh/parser.c index 0c75924b8231..97af4ff1c418 100644 --- a/bin/sh/parser.c +++ b/bin/sh/parser.c @@ -1,4 +1,4 @@ -/* $NetBSD: parser.c,v 1.48 2001/11/02 23:49:14 christos Exp $ */ +/* $NetBSD: parser.c,v 1.49 2002/02/11 18:57:19 christos Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95"; #else -__RCSID("$NetBSD: parser.c,v 1.48 2001/11/02 23:49:14 christos Exp $"); +__RCSID("$NetBSD: parser.c,v 1.49 2002/02/11 18:57:19 christos Exp $"); #endif #endif /* not lint */ @@ -1006,7 +1006,7 @@ readtoken1(firstc, syntax, eofmark, striptabs) PARSESUB(); /* parse substitution */ break; case CENDVAR: /* '}' */ - if (varnest > 0) { + if (varnest > 0 && !dblquote) { varnest--; USTPUTC(CTLENDVAR, out); } else {