Fixed echo ~ {} bug.
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Mon, 29 Jul 1991 05:12:31 +0000 (21:12 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Mon, 29 Jul 1991 05:12:31 +0000 (21:12 -0800)
SCCS-vsn: bin/csh/glob.c 5.25

usr/src/bin/csh/glob.c

index d42321f..9e2efea 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)glob.c     5.24 (Berkeley) %G%";
+static char sccsid[] = "@(#)glob.c     5.25 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -238,7 +238,7 @@ globexpand(v)
        Char   *b;
        Char  **vp, **bp;
 
        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;
 
            Char  **bl;
            int     len;