=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/env/env.1,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/env/env.1 1998/09/23 04:32:39 1.4 +++ src/usr.bin/env/env.1 1999/06/05 01:21:23 1.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: env.1,v 1.4 1998/09/23 04:32:39 aaron Exp $ +.\" $OpenBSD: env.1,v 1.5 1999/06/05 01:21:23 aaron Exp $ .\" Copyright (c) 1980, 1990 The Regents of the University of California. .\" All rights reserved. .\" @@ -43,18 +43,20 @@ .Sh SYNOPSIS .Nm env .Op Fl i -.Op Ar name=value ... .Oo +.Ar name Ns No = Ns Ar value ... +.Oc +.Oo .Ar utility .Op Ar argument ... .Oc .Sh DESCRIPTION -.Nm env +.Nm executes .Ar utility after modifying the environment as specified on the command line. The option -.Ar name=value +.Ar name Ns No = Ns Ar value specifies an environment variable, .Ar name , @@ -64,60 +66,60 @@ .Fl i option causes -.Nm env +.Nm to completely ignore the environment it inherits. .Pp -If no +If no .Ar utility is specified, -.Nm env +.Nm prints out the names and values -of the variables in the environment, with one -.Ar name=value +of the variables in the environment, with one +.Ar name Ns No = Ns Ar value pair per line. .Sh DIAGNOSTICS -If the +If the .Ar utility -is invoked, the exit status of -.Nm env +is invoked, the exit status of +.Nm shall be the exit status of .Ar utility ; otherwise, the -.Nm env +.Nm utility exits with one of the following values: .Bl -tag -width Ds .It 0 -The -.Nm env +The +.Nm utility completed successfully. .It 1-125 An error occurred in the -.Nm env +.Nm utility. .It 126 The utility specified by -.Ar utility +.Ar utility was found, but could not be invoked. .It 127 The utility specified by -.Ar utility +.Ar utility could not be found. .El .Sh COMPATIBILITY -The historic -.Fl +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 +.Nm utility conforms to .St -p1003.2-92 . .Sh BUGS -.Nm env +.Nm doesn't handle commands with equal .Pq Sq = signs in their