Skip to content

Windows: Zed assumes bash/sh as the shell  #40372

@WeismannS

Description

@WeismannS

Summary

Zed cannot open remote project (WSL), errors on mkdir -p .zed_wsl_server

Description

The problem is zed expects the wsl shell to be bash, not taking into account that the default shell might be different.
I'm using Nushell and the -p flag isn't avaialable in the mkdir cmd of nushell
Steps to trigger the problem:
1.change your WSL shell to something else other than sh or bash, Nushell for example (chsh -s /bin/nu)
2.attempt to open wsl project for the first time

Expected Behavior: should pipe the necessary commands to sh rather than make the assumption of the default shell being bash
Actual Behavior: doesn't do that

Zed Version and System Specs

Zed: v0.208.4 (Zed)
OS: Windows 10.0.26100
Memory: 31.8 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3070 || NVIDIA Corporation || 581.42 r581_36

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions