From 56f202851ac147222e1c5741f6c5091d4f15aa44 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 27 Sep 2004 18:43:18 +0000 Subject: Attempting to unset an undefined variable or function should not be considered an error according to the Open Group Base Specification. PR: standards/45738 Submitted by: Matthias Andree MFC after: 3 days --- bin/sh/exec.c | 2 +- bin/sh/var.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/sh') diff --git a/bin/sh/exec.c b/bin/sh/exec.c index 6ded26d..03c6162 100644 --- a/bin/sh/exec.c +++ b/bin/sh/exec.c @@ -701,7 +701,7 @@ unsetfunc(char *name) delete_cmd_entry(); return (0); } - return (1); + return (0); } /* diff --git a/bin/sh/var.c b/bin/sh/var.c index 5ee3cd9..94d6fee 100644 --- a/bin/sh/var.c +++ b/bin/sh/var.c @@ -761,7 +761,7 @@ unsetvar(char *s) } } - return (1); + return (0); } -- cgit v1.1