From da1b137e389365ddfb9d16b3d6761cf1a3986e0b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 27 Jun 2005 01:01:07 +0000 Subject: Fix strerror() handling for systems which set ANSI_STRING. Don't print errors if "include" is specified with no arguments. New test suite for the $(shell ...) function. --- function.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'function.c') diff --git a/function.c b/function.c index 983df74..0772739 100644 --- a/function.c +++ b/function.c @@ -1482,7 +1482,10 @@ func_shell (char *o, char **argv, const char *funcname UNUSED) because target_environment hits a loop trying to expand $(var) to put it in the environment. This is even more confusing when var was not explicitly exported, but just appeared in the - calling environment. */ + calling environment. + + envp = target_environment (NILF); + */ envp = environ; -- cgit v1.2.3