【发布时间】:2019-11-19 11:38:44
【问题描述】:
我对以下内容有点困惑:
/usr/bin/env V=hello echo $V somestring
仅输出
somestring
不是hello somestring,就像我对man env所期望的那样。
然而,尾
/usr/bin/env V=hello printenv
是
_=/usr/bin/env
V=hello
为什么会这样?
【问题讨论】:
标签: bash macos shell environment-variables