From 8b4314cbcdb4d7f438f00c1bafed30067d49969b Mon Sep 17 00:00:00 2001 From: tg Date: Thu, 15 Oct 2009 16:25:15 +0000 Subject: [PATCH] =?UTF-8?q?fix=20exec-function-environment-1=20(I=20hope?= =?UTF-8?q?=20this=20doesn=E2=80=99t=20break=20anything=20else!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index ed866e3..ddb0f95 100644 --- a/exec.c +++ b/exec.c @@ -22,7 +22,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.66 2009/10/02 18:08:32 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.67 2009/10/15 16:25:15 tg Exp $"); static int comexec(struct op *, struct tbl *volatile, const char **, int volatile, volatile int *); @@ -497,7 +497,7 @@ comexec(struct op *t, struct tbl *volatile tp, const char **ap, if (keepasn_ok && tp && tp->type == CFUNC && !(tp->flag & FKSH)) { bourne_function_call = true; - type_flags = 0; + type_flags = EXPORT; } else type_flags = LOCAL|LOCAL_COPY|EXPORT; }