[hackers] [sbase] Add mandoc-manpage for env(1) || FRIGN
commit a05f525dbaad1ed7eeedca1a12f3a5a9dd3e2e86
Author: FRIGN <dev_AT_frign.de>
Date: Sat Jan 24 00:22:06 2015 +0100
Add mandoc-manpage for env(1)
and mark it as finished in the README.
diff --git a/README b/README
index 759865c..01624c2 100644
--- a/README
+++ b/README
_AT_@ -27,7 +27,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* dirname yes none
= du no -H, -L, (-x)
=* echo yes none
-= env yes none
+=* env yes none
# expand yes none
expr yes none
=* false yes none
diff --git a/env.1 b/env.1
index ff40600..8fbd2d9 100644
--- a/env.1
+++ b/env.1
_AT_@ -1,41 +1,46 @@
-.TH ENV 1 sbase\-VERSION
-.SH NAME
-env \- modify the environment, then print it or run a command.
-.SH SYNOPSIS
-.B env
-.RB [ \-i ]
-.RB [ \-u
-.IR name ]...
-.RI [ name=value ]...
-.RI [ cmd
-.RI [ arg ...]]
-
-.SH DESCRIPTION
-.B env
-removes part of the environment according to the flags, then adds or
-sets each variable specified by
-.IR name
-to equal
-.IR value .
-
+.Dd January 24, 2015
+.Dt ENV 1 sbase\-VERSION
+.Sh NAME
+.Nm env
+.Nd modify the environment, then print it or run a command
+.Sh SYNOPSIS
+.Nm env
+.Op Fl i
+.Oo Fl u Ar variable Oc ...
+.Oo Ar variable Ns = Ns Ar value Oc ...
+.Oo Ar cmd Oo arg ... Oc Oc
+.Sh DESCRIPTION
+.Nm
+unsets each
+.Ar variable ,
+then adds or sets each
+.Ar ( variable , value )
+tuple in the environment.
+.Pp
If
-.IR cmd
-is given, it is executed in this new environment; otherwise, the
-modified environment is printed to standard out.
-
-.SH OPTIONS
-.TP
-.B \-i
-Comptetely ignore the existing environment; start fresh.
-
-.TP
-.B \-u name
-Unsets
-.IR name
-from the environment.
-
-.SH SEE ALSO
-.IR printenv (1)
-.IR putenv (3)
-.IR environ (7)
-
+.Ar cmd
+is given, it is executed in this new environment;
+otherwise, the modified environment is printed to stdout.
+.Sh OPTIONS
+.Bl -tag -width Ds
+.It Fl i
+Completely ignore the existing environment and execute
+.Ar cmd
+only with each
+.Ar ( variable , value )
+specified.
+.El
+.Sh SEE ALSO
+.Xr printenv 1 ,
+.Xr putenv 3 ,
+.Xr environ 7
+.Sh STANDARDS
+The
+.Nm
+utility is compliant with the
+.St -p1003.1-2008
+specification.
+.Pp
+The
+.Op Fl u
+flag is an extension to that specification.
diff --git a/env.c b/env.c
index a7d7ef4..9d420ef 100644
--- a/env.c
+++ b/env.c
_AT_@ -12,7 +12,7 @@ extern char **environ;
static void
usage(void)
{
- eprintf("usage: env [-i] [-u name]... [name=value]... [cmd [arg...]]\n");
+ eprintf("usage: env [-i] [-u variable] ... [variable=value] ... [cmd [arg ...]]\n");
}
int
Received on Sat Jan 24 2015 - 11:08:05 CET
This archive was generated by hypermail 2.3.0
: Sat Jan 24 2015 - 11:12:22 CET