From cdaab3707c9843c009efdea91fb4fc18dbde8715 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Sun, 28 Jul 1991 21:12:31 -0800 Subject: [PATCH] Fixed echo ~ {} bug. SCCS-vsn: bin/csh/glob.c 5.25 --- usr/src/bin/csh/glob.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/src/bin/csh/glob.c b/usr/src/bin/csh/glob.c index d42321fe9d..9e2efea1e4 100644 --- a/usr/src/bin/csh/glob.c +++ b/usr/src/bin/csh/glob.c @@ -6,7 +6,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)glob.c 5.24 (Berkeley) %G%"; +static char sccsid[] = "@(#)glob.c 5.25 (Berkeley) %G%"; #endif /* not lint */ #include @@ -238,7 +238,7 @@ globexpand(v) Char *b; Char **vp, **bp; - if ((b = Strchr(s, LBRC)) != NULL && b[1] != '\0') { + if ((b = Strchr(s, LBRC)) != NULL && b[1] != '\0' && b[1] != RBRC) { Char **bl; int len; -- 2.20.1