aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/env/env.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/env/env.1')
-rw-r--r--usr.bin/env/env.150
1 files changed, 30 insertions, 20 deletions
diff --git a/usr.bin/env/env.1 b/usr.bin/env/env.1
index fcefb261e5d2..8631f3fce2e1 100644
--- a/usr.bin/env/env.1
+++ b/usr.bin/env/env.1
@@ -31,9 +31,10 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" @(#)printenv.1 6.7 (Berkeley) 7/28/91
+.\" from: @(#)printenv.1 6.7 (Berkeley) 7/28/91
+.\" $Id: env.1,v 1.2.2.1 1994/05/01 16:08:19 jkh Exp $
.\"
-.Dd July 14, 1993
+.Dd August 27, 1993
.Dt ENV 1
.Os
.Sh NAME
@@ -44,13 +45,13 @@
.Op Fl i
.Op Ar name=value ...
.Oo
-.Ar command
+.Ar utility
.Op argument ...
.Oc
.Sh DESCRIPTION
.Nm env
executes
-.Ar command
+.Ar utility
after modifying the environment as
specified on the command line. The option
.Ar name=value
@@ -67,47 +68,56 @@ to completely ignore the environment
it inherits.
.Pp
If no
-.Ar command
+.Ar utility
is specified,
.Nm env
prints out the names and values
-of the variables in the environment, with one name/value pair per line.
+of the variables in the environment, with one
+.Ar name=value
+pair per line.
.Sh DIAGNOSTICS
If the
-.Ar command
+.Ar utility
is invoked, the exit status of
.Nm env
shall be the exit status of
-.Ar command ;
+.Ar utility;
otherwise, the
.Nm env
-command exits with one of the following values:
+utility exits with one of the following values:
.Bl -tag -width Ds
.It 0
The
.Nm env
-command completed successfully
+utility completed successfully
.It 1-125
-An error occured.
+An error occurred in the
+.Nm env
+utility.
.It 126
-The
-.Ar command
+The utility specified by
+.Ar utility
was found, but could not be invoked.
.It 127
-The
-.Ar command
+The utility specified by
+.Ar utility
could not be found.
.El
+.Sh COMPATIBILITY
+The historic
+.Fl
+option has been deprecated but is still supported in this implementation.
.Sh SEE ALSO
.Xr execvp 3 ,
.Xr environ 7
.Sh STANDARDS
The
.Nm env
-command is expected to be
-.St -p1003.2
-compliant.
+utility conforms to
+.St -p1003.2-92 .
.Sh BUGS
-.Nm env
-doesn't handle commands with equal (``='') signs in their
+.Nm Env
+doesn't handle commands with equal
+.Pq Dq =
+signs in their
names, for obvious reasons.