ENV

Section: User Commands (1)
Index Return to Main Contents

BSD mandoc
 

NAME

env - set and print environment  

SYNOPSIS

[-i ] [name=value ... ] [utility [argument ...] ]  

DESCRIPTION

executes utility after modifying the environment as specified on the command line. The option name=value specifies an environmental variable, name with a value of value The option `-i ' causes to completely ignore the environment it inherits.

If no utility is specified, prints out the names and values of the variables in the environment, with one name=value pair per line.  

DIAGNOSTICS

If the utility is invoked, the exit status of shall be the exit status of utility; otherwise, the utility exits with one of the following values:

0
The utility completed successfully
1-125
An error occurred in the utility.
126
The utility specified by utility was found, but could not be invoked.
127
The utility specified by utility could not be found.

 

COMPATIBILITY

The historic - option has been deprecated but is still supported in this implementation.  

SEE ALSO

execvp(3), environ(7)  

STANDARDS

The utility conforms to St -p1003.2-92 .  

BUGS

doesn't handle commands with equal (``='' ) signs in their names, for obvious reasons.


 

Index

NAME
SYNOPSIS
DESCRIPTION
DIAGNOSTICS
COMPATIBILITY
SEE ALSO
STANDARDS
BUGS

This document was created by man2html, using the manual pages.
Time: 04:29:50 GMT, April 24, 2025