mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-24 19:51:14 -03:00
Commitf05ad46980(config_paths: remove vestiges of installable builds, 2025-09-06) removed a bunch of code paths for embed-data builds, since those builds can do without most config paths. However they still want the sysconfig path. That commit made embedded builds use "/etc/fish" unconditionally. Previously they used "$workspace_root/etc". This is important when running tests, which should not read /etc/fish. tests/checks/invocation.fish tests this implicitly: if /etc/fish does not exist, then fish --profile-startup /dev/stdout will not contain "builtin source". Let's restore historical behavior. This might be annoying for users who "install" with "ln -s target/debug/fish ~/bin/", but that hasn't ever been recommended, and the historical behavior was in effect until 4.1.0. Fixes #11900 (cherry picked from commit3fec9c8145)