profile.fish does not get executed by default, therefore 'module' is unavailable on fish shells unless it gets sourced manually. Reproducible: Always Steps to Reproduce: Set the user shell to fish Actual Results: lmod does not get loaded automatically if the current shell is fish. Expected Results: lmod gets loaded on fish shells.
I think we want to coordinate this with the environment-modules package as well. From a quick look I think we need to install /usr/share/lmod/8.7.24/init/profile.fish into /etc/fish.conf.d/. I'm not sure what the equivalent startup file for environment-modules - perhaps /usr/share/Modules/init/fish? But if there is one we'll want to install it via alternatives like is done with the sh/csh startup files.
environment-modules startup file for fish shell is /usr/share/Modules/init/fish. It seems that the accurate location for a software-specific configuration snippet is /usr/share/fish/vendor_conf.d/. This is the directory used by other packages on fedora (on my system I found that snapd and nano-default-editor are using this spot). I would like to add that I tried to setup things in /etc/fish/conf.d, but this directory seems ignored by the fish version installed on Fedora. So I will add a new alternatives follower file /usr/share/fish/vendor_conf.d/modules.sh in environment-modules package.
On environment-modules side, fixed with environment-modules-5.3.0-2.fc39. A /usr/share/fish/vendor_conf.d/modules.fish link to /usr/share/Modules/init/fish is added. This link is managed with alternatives.
Thank you Xavier. Similar fish support has been added to Lmod-8.7.25-2.
FEDORA-2023-c1bde94b11 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c1bde94b11
FEDORA-2023-c1bde94b11 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c1bde94b11` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c1bde94b11 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-c1bde94b11 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.