gpt4 book ai didi

macos - $PATH 和 $fpath 有什么区别?

转载 作者:行者123 更新时间:2023-12-04 07:38:41 25 4
gpt4 key购买 nike

当我输入 echo $PATHecho $FPATH我得到不同的输出。 $PATH有什么区别和 $FPATH ?

我使用 Mac OSX Mavericks。

最佳答案

FPATH是函数定义的搜索路径。

FPATH The search path for function definitions. The directories in this path are searched for a file with the same name as the function or command when a function with the -u attribute is referenced and when a command is not found. If an executable file with the name of that command is found, then it is read and executed in the current environment. Unlike PATH, the current directory must be represented explicitly by . rather than by adjacent : characters or a beginning or ending :.



-- 来自 mac developer library

除了被 ksh 使用之外正如@robmayoff 在他的 answer 中指出的那样. zsh也使用它。

关于macos - $PATH 和 $fpath 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20451029/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com