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.
OK. So I found it out. As @that-other-guy mentioned in the comment above, I used type -a
instead of which
, which showed me that it was a function defined.