printenv [ - | -i ] [ name=value ] ... [ command [args] ]
The env command obtains the current ``environment'', modifies it according to its arguments, then executes the command with the modified environment. Arguments of the form name are merged into the inherited environment before the command is executed. The - flag causes the inherited environment to be ignored completely, so that the command is executed with exactly the environment specified by the arguments. The -i flag is equivalent to the - flag, but it conforms to the POSIX utility syntax guidelines.
env understands the -- option delimiter.
If no command is specified, the environment is printed, one name-value pair per line.
ISO/IEC DIS 99452:1992, Information technology Portable Operating System Interface (POSIX) Part 2: Shell and Utilities (IEEE Std 1003.21992);
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992.