Subject: lib/195: putenv(3) manpage is confusing
To: None <gnats-admin>
From: None <Mark_Weaver@brown.edu>
List: netbsd-bugs
Date: 03/31/1994 21:20:03
>Number:         195
>Category:       lib
>Synopsis:       putenv(3) manpage is confusing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Library Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 31 21:20:03 1994
>Originator:     Mark Weaver
>Organization:
--------------------------------------------------------------------
Email: Mark_Weaver@brown.edu           | Brown University
PGP Key: finger mhw@cs.brown.edu       | Dept of Computer Science
>Release:        current-940331
>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
>Audit-Trail:
>Unformatted:


------------------------------------------------------------------------------