[hackers] [sbase] Add mandoc-manpage for env(1) || FRIGN

From: <git_AT_suckless.org>
Date: Sat, 24 Jan 2015 11:08:05 +0100 (CET)

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
-env \- modify the environment, then print it or run a command.
-.B env
-.RB [ \-i ]
-.RB [ \-u
-.IR name ]...
-.RI [ name=value ]...
-.RI [ cmd
-.RI [ arg ...]]
-.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
+.Nm env
+.Nd modify the environment, then print it or run a command
+.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
+unsets each
+.Ar variable ,
+then adds or sets each
+.Ar ( variable , value )
+tuple in the environment.
-.IR cmd
-is given, it is executed in this new environment; otherwise, the
-modified environment is printed to standard out.
-.B \-i
-Comptetely ignore the existing environment; start fresh.
-.B \-u name
-.IR name
-from the environment.
-.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.
+.Bl -tag -width Ds
+.It Fl i
+Completely ignore the existing environment and execute
+.Ar cmd
+only with each
+.Ar ( variable , value )
+.Xr printenv 1 ,
+.Xr putenv 3 ,
+.Xr environ 7
+utility is compliant with the
+.St -p1003.1-2008
+.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
- eprintf("usage: env [-i] [-u name]... [name=value]... [cmd [arg...]]\n");
+ eprintf("usage: env [-i] [-u variable] ... [variable=value] ... [cmd [arg ...]]\n");
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