NetBSD Problem Report #195
From gnats Thu Mar 31 21:16:41 1994
Received: from cis-ts3-slip4.cis.brown.edu (root@cis-ts3-slip4.cis.brown.edu [128.148.19.58]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id VAA19478 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 31 Mar 1994 21:16:38 -0800
Message-Id: <199404010516.AAA03424@cis-ts3-slip4.cis.brown.edu>
Date: Fri, 1 Apr 1994 00:16:47 -0500
From: Mark_Weaver@brown.edu
Reply-To: Mark_Weaver@brown.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: putenv(3) manpage is confusing
X-Send-Pr-Version: 3.2
>Number: 195
>Category: lib
>Synopsis: putenv(3) manpage is confusing
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 31 21:20:03 +0000 1994
>Closed-Date: Fri Apr 01 08:33:27 +0000 1994
>Last-Modified:
>Originator: Mark Weaver
>Release: current-940331
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu | Brown University
PGP Key: finger mhw@cs.brown.edu | Dept of Computer Science
>Environment:
System: NetBSD cis-ts3-slip4.cis.brown.edu 0.9a EXCELSIOR#0 i386
>Description:
The putenv(1) man page states that putenv(string) is equivalent
to setenv(name, value, 1). It does not state that <string> is
of the form "name=value".
>How-To-Repeat:
man putenv
>Fix:
diff -u src/lib/libc/stdlib/getenv.3.mhw1 src/lib/libc/stdlib/getenv.3
--- src/lib/libc/stdlib/getenv.3.mhw1 Fri Dec 17 01:27:28 1993
+++ src/lib/libc/stdlib/getenv.3 Fri Apr 1 00:09:57 1994
@@ -87,7 +87,7 @@
.Ar name
does not exist in the list,
it is inserted with the given
-.Ar value.
+.Ar value .
If the variable does exist, the argument
.Ar overwrite
is tested; if
@@ -104,6 +104,10 @@
.Bd -literal -offset indent
setenv(name, value, 1);
.Ed
+.Pp
+where
+.Ar string
+is of the form "name=value".
.Pp
The
.Fn unsetenv
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Fri Apr 1 00:33:27 PST 1994
State-Changed-Why:
fixed (in a different way than suggested).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.