Bash tool can't cope with variable assignments

Resolved 💬 3 comments Opened Aug 14, 2025 by setharnold Closed Jan 4, 2026

Hello, I see examples like this often:

  Bash(rm -rf /tmp/test_debug_bin && timeout 10 RUST_LOG=debug ./target/release/zipgrep-build --storage sqlite /usr/bin /tmp/test_debug_bin 2>&1 | head
      -50)
  ⎿  timeout: failed to run command ‘RUST_LOG=debug’: No such file or directory

● Bash(rm -rf /tmp/test_debug_bin && RUST_LOG=debug timeout 10 ./target/release/zipgrep-build --storage sqlite /usr/bin /tmp/test_debug_bin 2>&1 | head
      -50)
  ⎿  /usr/bin/claude-bash: line 1: RUST_LOG=debug: command not found

Claude Code spends so much time re-learning that it can't do this. I wish it its Bash tool could cope with standard Bash things.

Thanks

View original on GitHub ↗

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