env.1 - sbase - suckless unix tools | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
env.1 (876B) | |
--- | |
1 .Dd October 8, 2015 | |
2 .Dt ENV 1 | |
3 .Os sbase | |
4 .Sh NAME | |
5 .Nm env | |
6 .Nd modify the environment, then print it or run a command | |
7 .Sh SYNOPSIS | |
8 .Nm | |
9 .Op Fl i | |
10 .Oo Fl u Ar var Oc ... | |
11 .Oo Ar var Ns = Ns Ar value Oc ... | |
12 .Oo Ar cmd Oo arg ... Oc Oc | |
13 .Sh DESCRIPTION | |
14 .Nm | |
15 unsets each | |
16 .Ar var , | |
17 then adds or sets each | |
18 .Ar ( var , value ) | |
19 tuple in the environment. | |
20 .Pp | |
21 If | |
22 .Ar cmd | |
23 is given, it is executed in this new environment; | |
24 otherwise, the modified environment is printed to stdout. | |
25 .Sh OPTIONS | |
26 .Bl -tag -width Ds | |
27 .It Fl i | |
28 Completely ignore the existing environment and execute | |
29 .Ar cmd | |
30 only with each | |
31 .Ar ( var , value ) | |
32 tuple specified. | |
33 .It Fl u Ar var | |
34 Unset | |
35 .Ar var | |
36 in the environment. | |
37 .El | |
38 .Sh SEE ALSO | |
39 .Xr printenv 1 , | |
40 .Xr putenv 3 , | |
41 .Xr environ 7 | |
42 .Sh STANDARDS | |
43 The | |
44 .Nm | |
45 utility is compliant with the | |
46 .St -p1003.1-2013 | |
47 specification. | |
48 .Pp | |
49 The | |
50 .Op Fl u | |
51 flag is an extension to that specification. |