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.
envreceived from the shell, because the value of_is command-specific? – Tim Jul 01 '16 at 16:01envprint 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:04envprints 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 ofenvdepend onenv, and not on the current shell? – Tim Jul 05 '16 at 13:04envthe environment that the shell passes toenv? Does the environment thatenvreceives contain environment variables whose values are specific toenv, such as_whose value is set to/usr/bin/env? – Tim Jul 05 '16 at 16:45envis not part of the shell. – schily Jul 05 '16 at 17:09