Skip to content

Nix remote store commands (ping, copy etc..) don't work with Fish shell #11010

@fzakaria

Description

@fzakaria

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions