View | Details | Raw Unified | Return to bug 27690
Collapse All | Expand All

(-)/tmp/printenv.1 (+14 lines)
Lines 101-106 Link Here
101
.Nm env
101
.Nm env
102
prints out the names and values
102
prints out the names and values
103
of the variables in the environment, with one name/value pair per line.
103
of the variables in the environment, with one name/value pair per line.
104
.Pp
105
.Nm env
106
is most useful with the
107
.Li #!
108
construct. The only difference between
109
.Li "#! /usr/local/bin/foo"
110
and
111
.Li "#! /usr/bin/env /usr/local/bin/foo"
112
is that the latter works even if
113
.Pa /usr/local/bin/foo
114
is itself scripted. The facilities of env allow reference to
115
.Ic foo
116
without the path,
117
and allow the script author to set up environment variables as needed.
104
.Sh SEE ALSO
118
.Sh SEE ALSO
105
.Xr csh 1 ,
119
.Xr csh 1 ,
106
.Xr sh 1 ,
120
.Xr sh 1 ,

Return to bug 27690