coreutils manual says about env
command that
env [option]... [name=value]... [command [args]...]
If no command name is specified following the environment specifications, the resulting environment is printed. This is like specifying the printenv program.
is the printed environment by env
specific to env
, in the sense that the value of _
depends on env
? For example,
$ env | grep '^_'
_=/usr/bin/env
Does env
print out almost all the the exported environment of the current shell, except that the value of the environment variable _
is modified to be specific to env
?
So is env
not to print out the environment in the current shell, but the environment received within env
?
Thanks.
env
received from the shell, because the value of_
is command-specific? – Tim Jul 01 '16 at 16:01env
print out almost all the the exported environment of the current shell, except that the value of the environment variable-
is modified to be specific toenv
? See the exampled I added to my post. – Tim Jul 05 '16 at 11:04env
prints everything it received from the shell. – schily Jul 05 '16 at 13:02_
, instead of-
, is modified to be specific toenv
. So doesn't the value of_
in the output ofenv
depend onenv
, and not on the current shell? – Tim Jul 05 '16 at 13:04env
the environment that the shell passes toenv
? Does the environment thatenv
receives contain environment variables whose values are specific toenv
, such as_
whose value is set to/usr/bin/env
? – Tim Jul 05 '16 at 16:45env
is not part of the shell. – schily Jul 05 '16 at 17:09