42 lines
681 B
Groff
42 lines
681 B
Groff
.TH ENV 1 sbase\-VERSION
|
|
.SH NAME
|
|
env \- modify the environment, then print it or run a command.
|
|
.SH SYNOPSIS
|
|
.B env
|
|
.RB [ \-i ]
|
|
.RB [ \-u
|
|
.IR name ]...
|
|
.RI [ name=value ]...
|
|
.RI [ cmd
|
|
.RI [ arg ...]]
|
|
|
|
.SH DESCRIPTION
|
|
.B env
|
|
removes part of the environment according to the flags, then adds or
|
|
sets each variable specified by
|
|
.IR name
|
|
to equal
|
|
.IR value .
|
|
|
|
If
|
|
.IR cmd
|
|
is given, it is executed in this new environment; otherwise, the
|
|
modified environment is printed to standard out.
|
|
|
|
.SH OPTIONS
|
|
.TP
|
|
.B \-i
|
|
Comptetely ignore the existing environment; start fresh.
|
|
|
|
.TP
|
|
.B \-u name
|
|
Unsets
|
|
.IR name
|
|
from the environment.
|
|
|
|
.SH SEE ALSO
|
|
.IR printenv (1)
|
|
.IR putenv (3)
|
|
.IR environ (7)
|
|
|