Homebrew 要求我们添加eval $(/opt/homebrew/bin/brew shellenv)到~/.zprofile. 这实际上评估了什么以及它实现了什么?
eval $(/opt/homebrew/bin/brew shellenv)
~/.zprofile
我对 shell 脚本有点陌生。我知道$var用于引用名为 var 的变量,但仅此而已。在里面放置路径是什么意思$()?这里还有shellenv一个论证,它意味着什么?
$var
$()
shellenv
shell homebrew syntax macos
homebrew ×1
macos ×1
shell ×1
syntax ×1