Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: broken by the FPATH environment variable defined by bash / lmod



On 8/19/26 5:48 AM, Vincent Lefevre wrote:

In 2021, FPATH is still used by LLVM/MPICH:

   https://mooseframework.inl.gov/releases/moose/2021-09-15/getting_started/installation/manual_installation_llvm.html

which has

   export FPATH=$PACKAGES_DIR/mpich-3.3/include:$FPATH


So users of zsh and that software would have to properly scope the environment variable to use both.

via cmd() { local -x +h FPATH=whatever; command cmd "$@"; } or env FPATH=value cmd ...

It is still just a naming collision, collisions that occurred long after ksh/zsh's implementation of
FPATH to work like PATH, but with shell functions. which includes importing from the environment when it exist.




Messages sorted by: Reverse Date, Date, Thread, Author