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

Eric Cook <[email protected]>
Newsgroups gmane.comp.shells.zsh.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.