Describe the bug
I cannot seem to use any Nix commands that work with a remote store over SSH or SSH-NG using the Fish shell.
Steps To Reproduce
❯ SHELL=$(which fish) nix store ping --store ssh://nixie
Store URL: ssh://nixie
error: failed to start SSH connection to 'nixie'
❯ SHELL=$(which bash) nix store ping --store ssh://nixie
Store URL: ssh://nixie
It matters what is $SHELL in the environment and not actually the current active shell.
This took me a long time to figure out the culprit but I'm not sure the cause.
Expected behavior
Should work regardless of shell.
nix-env --version output
nix-env (Nix) 2.18.2
Additional context
Running NixOS 24.05
Priorities
Add 👍 to issues you find important.