[BUG] Claude cannot run basic commands e.g.: ls under wsl debian

Resolved 💬 3 comments Opened Feb 26, 2026 by Abdullah-AlAttar Closed Feb 27, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Just installed it.
basic interactions work.
but when running any other command like "ls". it never finishes the task

<img width="1695" height="613" alt="Image" src="https://github.com/user-attachments/assets/c2ac2510-49f7-4179-88e0-d44e47467fdd" />

OS: Debian GNU/Linux 12 (bookworm) on Windows 10.0.26200 x86_64
Kernel: 6.6.87.2-microsoft-standard-WSL2

What Should Happen?

the command should run normally,

Error Messages/Logs

follow up logs

<img width="1697" height="951" alt="Image" src="https://github.com/user-attachments/assets/13fb302e-4de9-45c1-af64-b094cc147317" />

Steps to Reproduce

  1. Run claude in empty repo.
  2. trust
  3. ask to run 'ls' command in this directory

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.59 (Claude Code)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗