Audit env(1)
1) Shorten synopsis and reflect this in the manual 2) Use argv0 in usage() 3) Decrement argc in argv-loop for consistency 4) Make it clearer which error-code results from which errno in enprintf 5) Use idiomatic for-loop also for environ. Don't increment these pointers in the loop itself!
This commit is contained in:
16
env.1
16
env.1
@@ -1,4 +1,4 @@
|
||||
.Dd January 24, 2015
|
||||
.Dd March 1, 2015
|
||||
.Dt ENV 1
|
||||
.Os sbase
|
||||
.Sh NAME
|
||||
@@ -7,15 +7,15 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl i
|
||||
.Oo Fl u Ar variable Oc ...
|
||||
.Oo Ar variable Ns = Ns Ar value Oc ...
|
||||
.Oo Fl u Ar var Oc ...
|
||||
.Oo Ar var Ns = Ns Ar value Oc ...
|
||||
.Oo Ar cmd Oo arg ... Oc Oc
|
||||
.Sh DESCRIPTION
|
||||
.Nm
|
||||
unsets each
|
||||
.Ar variable ,
|
||||
.Ar var ,
|
||||
then adds or sets each
|
||||
.Ar ( variable , value )
|
||||
.Ar ( var , value )
|
||||
tuple in the environment.
|
||||
.Pp
|
||||
If
|
||||
@@ -28,11 +28,11 @@ otherwise, the modified environment is printed to stdout.
|
||||
Completely ignore the existing environment and execute
|
||||
.Ar cmd
|
||||
only with each
|
||||
.Ar ( variable , value )
|
||||
.Ar ( var , value )
|
||||
tuple specified.
|
||||
.It Fl u Ar variable
|
||||
.It Fl u Ar var
|
||||
Unset
|
||||
.Ar variable
|
||||
.Ar var
|
||||
in the environment.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
Reference in New Issue
Block a user