[Bug] Bash tool emits non-zsh-compatible syntax when SHELL=zsh on macOS

Open 💬 1 comment Opened Jun 10, 2026 by dsbecker

Bug Description
On macOS the Bash tool runs zsh (stated in the env context), but the model routinely emits bash-specific syntax that fails under zsh — sometimes silently, e.g. for x in $LIST loops once because zsh doesn't word-split unquoted variables; failed globs abort with "no matches found". The model should respect the reported shell or use POSIX-portable syntax, and the Bash tool description could call out the divergences when SHELL is zsh.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.170
  • Feedback ID: 6026da8b-d33b-4b3e-b135-80b475e912a2

Errors

[]

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗