Skip to content

Tasks not running on WSL (wrong flag passed to zsh) #39614

@existentialmutt

Description

@existentialmutt

Summary

Shell based tasks are not running in WSL because they are being run with zsh -C instead of zsh -c

Description

My tasks stopped working after a recent nightly update. I noticed that they are now being run with zsh -C instead of zsh -c

Steps to reproduce:

  1. Open a WSL project and configure project tasks with the following:
  {
    "label": "Print Working Directory",
    "command": "pwd"
  },
  1. Open a file in the project and run the task

Expected Behavior:
The task should print the project directory and exit successfully

Actual Behavior:
The following is output:

/usr/bin/zsh: can't open input file: pwd

⏵ Task `Print Working Directory` finished with non-zero error code: 127
⏵ Command: /usr/bin/zsh -C 'pwd'

Zed Version and System Specs

Zed: v0.208.0 (Zed Nightly f9919f9)
OS: Windows 10.0.26100
Memory: 31.5 GiB
Architecture: x86_64
GPU: Intel(R) Arc(TM) Graphics || Intel Corporation || 32.0.101.5978

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