Closed alexconlin closed 3 years ago
@alexconlin What's the output of which stat
on your system?
A ha 😃
$ which stat
/usr/local/opt/coreutils/libexec/gnubin/stat
I have coreutils first on my path
@alexconlin asdfj-java
is currently expecting BSD stat to be available on macOS:
https://github.com/halcyon/asdf-java/blob/e6d6be3270b3984cf418329e2a3b00b37f8414b3/bin/functions#L11-L16
Maybe we could handle GNU coreutils being on the class path. That would be a feature request. 😉
After looking carefully on my mac, I'd like to understand more. Why is /usr/local/opt/coreutils/libexec/gnubin
part of PATH? Is homebrew being used to install/manage coreutils?
Is homebrew being used to install/manage coreutils?
Yes, exactly and after the installation Homebrew emits the following message:
Commands also provided by macOS have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc like: PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
https://github.com/Homebrew/homebrew-core/blob/ddd4f0b1a030b98e065874e137e3d2fd604b3f41/Formula/coreutils.rb#L79-L82 https://formulae.brew.sh/formula/coreutils
I just upgraded to the latest version of asdf-java and got this output when installing a new version of java