make setenv() use G_APPEND
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Fri, 2 Aug 1991 18:42:29 +0000 (10:42 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Fri, 2 Aug 1991 18:42:29 +0000 (10:42 -0800)
SCCS-vsn: bin/csh/func.c 5.23

usr/src/bin/csh/func.c

index 400b02d..72bfd00 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)func.c     5.22 (Berkeley) %G%";
+static char sccsid[] = "@(#)func.c     5.23 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -902,7 +902,7 @@ dosetenv(v, t)
     }
     if ((lp = *v++) == 0)
        lp = STRNULL;
     }
     if ((lp = *v++) == 0)
        lp = STRNULL;
-    Setenv(vp, lp = globone(lp, G_ERROR));
+    Setenv(vp, lp = globone(lp, G_APPEND));
     if (eq(vp, STRPATH)) {
        importpath(lp);
        dohash(NULL, NULL);
     if (eq(vp, STRPATH)) {
        importpath(lp);
        dohash(NULL, NULL);