From 87aaf3d70db199cd6f026be0c2f630610dbd0a08 Mon Sep 17 00:00:00 2001 From: enami Date: Wed, 6 Oct 2004 10:23:43 +0000 Subject: [PATCH] Fix a bug introduced by previous commit. It breaks export command with multiple arguments if one of them are already set. Fix PR#27155 and probably PR#27143. --- bin/sh/var.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sh/var.c b/bin/sh/var.c index 0f51a6c232e1..e49d5e06f00d 100644 --- a/bin/sh/var.c +++ b/bin/sh/var.c @@ -1,4 +1,4 @@ -/* $NetBSD: var.c,v 1.35 2004/10/02 12:16:53 dsl Exp $ */ +/* $NetBSD: var.c,v 1.36 2004/10/06 10:23:43 enami Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: var.c,v 1.35 2004/10/02 12:16:53 dsl Exp $"); +__RCSID("$NetBSD: var.c,v 1.36 2004/10/06 10:23:43 enami Exp $"); #endif #endif /* not lint */ @@ -590,7 +590,7 @@ exportcmd(int argc, char **argv) vp = find_var(name, NULL, NULL); if (vp != NULL) { vp->flags |= flag; - return 0; + continue; } } setvar(name, p, flag);