What is the difference between $PATH and $fpath?
macos, path
Solution
`FPATH` is the search path for function definitions.
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 :.
-- From the mac developer library
In addition to being used by `ksh` as @robmayoff noted in his answer. zsh also uses it.
Problem
When I type `echo $PATH` and `echo $FPATH` I get different outputs. What are the differences between `$PATH` and `$FPATH`? I use Mac OSX Mavericks.