summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6f21cb3)
SCCS-vsn: bin/sh/parser.c 8.7
-static char sccsid[] = "@(#)parser.c 8.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) %G%";
#endif /* not lint */
#include <stdlib.h>
#endif /* not lint */
#include <stdlib.h>
if (c == '{') {
c = pgetc();
if (c == '#') {
if (c == '{') {
c = pgetc();
if (c == '#') {
- subtype = VSLENGTH;
- c = pgetc();
+ if ((c = pgetc()) == '}')
+ c = '#';
+ else
+ subtype = VSLENGTH;