is `PATH` `coreutils` constructed safely?
LucasLarson opened this issue · 1 comments
LucasLarson commented
if not, then consider:¹
command -v brew >/dev/null 2>&1 &&
[ -d "$(brew --prefix coreutils)" ] &&
PATH="$(brew --prefix coreutils)/libexec/gnubin:${PATH}" &&
export PATH
"$(brew --prefix)"
| "$(brew --prefix coreutils)"
| ||
---|---|---|---|
macOS | Intel | /usr/local ²
| /usr/local/opt/coreutils
|
ARM | /opt/homebrew ²
| /opt/homebrew/opt/coreutils
| |
Linux | /home/linuxbrew/.linuxbrew ²
| /home/linuxbrew/.linuxbrew/opt/homebrew
|
LucasLarson commented
✅ repaired in 419f395