From e334942e573ea8a4416eca0afafcaf45c3bba06f Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 22 Mar 2004 15:11:48 +0000 Subject: Numerous updates and bug fixes. A number of W32 cleanups from J.Grant. A number of OS/2 cleanups from Andreas Buening. Various random bug fixes. --- variable.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'variable.c') diff --git a/variable.c b/variable.c index d74672b..7b9d0d8 100644 --- a/variable.c +++ b/variable.c @@ -957,6 +957,11 @@ do_variable_definition (const struct floc *flocp, const char *varname, append = 1; v = lookup_variable_in_set (varname, strlen (varname), current_variable_set_list->set); + + /* Don't append from the global set if a previous non-appending + target-specific variable definition exists. */ + if (v && !v->append) + append = 0; } else v = lookup_variable (varname, strlen (varname)); -- cgit v1.2.3