Opening this bug as a result of https://forums.gentoo.org/viewtopic-t-1172464-highlight-.html. The ebuild for Zsh has a src_configure which contains the line: ``` --enable-etcdir="${EPREFIX}"/etc/zsh ``` However, the ebuild doesn't patch the zsh(1) man page to reflect this, with the opening line of the "STARTUP/SHUTDOWN FILES" section stating: ``` Commands are first read from /etc/zshenv; this cannot be overridden. ``` leading to the issue described in the above forum post. The man page should be patched to instead say something like: ``` On Gentoo, commands are first read from /etc/zsh/zshenv; this cannot be overridden. ``` i'm happy to create a patch with whatever exact wording is deemed appropriate. Reproducible: Always
(Of course, this won't help people reading the documentation on the Zsh site at https://zsh.sourceforge.io/Doc/Release/Files.html#Startup_002fShutdown-Files; i'm not sure what can be done about that. Perhaps the zsh binary needs a `--configuration` option to dump information about how it was configured, and the documentation can then tell people to refer to that?)
I would personally prefer to drop the --enable-etcdir option and install the files in the location preferred by upstream.