environ.7: Document convention of string in environ

Document the name=value system and that nul byte is forbidden.

Signed-off-by: Bastien Roucariès <rouca@debian.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Bastien Roucariès 2021-01-28 12:00:51 +01:00 committed by Michael Kerrisk
parent 7939275a0a
commit 2768c48107
1 changed files with 7 additions and 1 deletions

View File

@ -52,9 +52,15 @@ it inherits a
.I copy
of its parent's environment.
.PP
By convention the strings in
By convention, the strings in
.I environ
have the form "\fIname\fP\fB=\fP\fIvalue\fP".
Names of environment variables are case-sensitive and must not contain
the character "\fB=\fP". The values of environment variables can be anything
that can be represented as a string. A value and a name must not contain an
embedded null byte (\(aq\e0\(aq),
since this is assumed to terminate the string.
.PP
Common examples are:
.TP
.B USER