# Fix redirect stdin command for fish shell \(\#39963\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/63032f6c665c8b8392aba047b8d695a981316006)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 63032f6c665c8b8392aba047b8d695a981316006

Requested commit: 63032f6c665c8b8392aba047b8d695a981316006

Commit: 63032f6c665c8b8392aba047b8d695a981316006

Tree: 563896279d19c96d5e03adbefb6448626868f2b7

Author: Kevin Rambaud

Committer: GitHub

## Message

````
Fix redirect stdin command for fish shell (#39963)

This fixes an issue introduced via
[v0.208.0-pre](https://github.com/zed-industries/zed/releases/tag/v0.208.0-pre)
and reported via
https://github.com/zed-industries/zed/issues/34530#issuecomment-3386042577
where, when using fish shell as the default shell and using a Claude
Code thread in Zed, all command were failing because `(command)` in fish
is for command substitution. Using it creates this type of error:

```
fish: command substitutions not allowed in command position. Try var=(your-cmd) $var ...
(npm ci) </dev/null
^~~~~~~~~~~~^
```

or in the editor itself:

<img width="1624" height="1060" alt="image"
src="https://github.com/user-attachments/assets/64fc3126-2cdd-450e-bc85-ef91c56b3705"
/>


Using the appropriate syntax to redirect to stdin for fish fixes the
issue.

Release Notes:

- Fixed redirect stdin command for fish shell
````

## Parents

- [5f857ffbb128201926c0490bb09af582978039fe](https://git.cafe/gitcafe/zed/commit/5f857ffbb128201926c0490bb09af582978039fe?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/63032f6c665c8b8392aba047b8d695a981316006?format=markdown)
