p The .Sq Fl i option causes .Nm to completely ignore the environment it inherits.
p The .Sq Fl C Ar dir option causes the working directory to be changed to .Ar dir , and the environment variable .Ev PWD to be removed from the environment.
p The .Sq Fl u Ar name option causes removal of the .Ar name environment variable if it is in the environment. This is similar to the c unset command in .Xr sh 1 . The value for .Ar name must not include the .Ql = character.
p To allow for either a .Ar name to be added to the environment, or the .Ar utility Ns 's name (if no environment additions are present), to begin with a minus sign
q Sq \- the first .Dq Fl Fl argument is required. To allow for .Ar utility Ns 's name to contain an equals character
q Sq = (anywhere in its word) the second .Dq Fl Fl is required. If there are no .Ar name=value arguments given, then to allow for .Ar utility to contain an equals character, both .Dq Fl Fl arguments are required. The first ends the options, the second ends the (in this case empty) environment variable additions.
p If no .Ar utility is specified, .Nm prints out the names and values of the variables in the environment. Each .Ar name=value pair is separated by a new line unless .Fl 0 is specified, in which case name/value pairs are separated by a nul character
q Sq \e0 . The .Fl 0 option is ignored if a .Ar utility is given. .Sh EXIT STATUS If a .Ar utility is specified, can be located, and successfully invoked, the exit status of .Nm is the exit status of the .Ar utility . See its documentation for the possible values and interpretations.
p Otherwise .Nm exits with one of the following values: l -tag -width Ds t 0 No .Ar utility was specified, and .Nm has successfully written the contents of the
q possibly modified environment to standard output. t 125 .Nm was given an invalid option, a requested operation failed, or some other error occurred. t 126 .Ar utility was found, but could not be invoked. t 127 .Ar utility could not be found. .El
p Whenever .Nm exits with a non-zero status, without having invoked a .Ar utility , it writes a message to the standard error stream identifying itself, and the reason for the non-zero exit. This can help distinguish cases where .Nm exits because of a problem, from when .Ar utility does so. The case of a zero exit status is simpler; if a .Ar utility was given on the command line, the zero status is from that utility, otherwise it is from .Nm . .Sh COMPATIBILITY The historic .Fl option has been deprecated but is still supported in this implementation.
p The .Fl C , u and .Fl 0 options are non-standard extensions. .Sh SEE ALSO .Xr chdir 2 , .Xr execvp 3 , .Xr environ 7 .Sh STANDARDS The .Nm utility conforms to .St -p1003.2-92 . .Sh HISTORY The .Nm command appeared in x 4.4 .
p The .Fl u and .Fl 0 options first appeared in .Nx 10 , after earlier appearing in other systems.
p The .Fl C option first appeared in .Nx 10.1 .