I just installed sdkman for installing grails on my machine (MacOS). When I run which sdk
command I don't get any output. But when I run the sdk help
command the shell is able to resolve it and give the right output. I checked all the directories mentioned in $PATH environment variable but I could not find any executable sdk
. So my question is how is shell able to resolve the sdk
command?
Note: I also checked in Ubuntu and I see the same behavior.
which
is almost never the right command. Usetype
instead – Schleswigholstein