sdkman的`sdk`命令安装在哪里 [英] Where is the `sdk` command installed for sdkman

查看:329
本文介绍了sdkman的`sdk`命令安装在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 sdkman 以便在我的计算机(MacOS)上安装grails.当我运行which sdk命令时,没有任何输出.但是,当我运行sdk help命令时,shell能够解析它并提供正确的输出.我检查了$ PATH环境变量中提到的所有目录,但找不到任何可执行文件sdk.所以我的问题是shell如何能够解析sdk命令?

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 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?

注意:我还签入了Ubuntu,并且看到了相同的行为.

Note: I also checked in Ubuntu and I see the same behavior.

推荐答案

确定.所以我发现了.就像上面评论中提到的@ that-other-guy一样,我使用了type -a而不是which,这向我表明这是一个定义的函数.

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.

这篇关于sdkman的`sdk`命令安装在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆