[BUG] parallel Bash calls get cancelled when grep returns exit code 1

Resolved 💬 3 comments Opened May 2, 2026 by rimutuyuan1 Closed May 5, 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?

grep 没匹配到内容时返回 exit code 1,框架把这个非零退出码当成了执行失败,连带把并行组里的另一个命令也干掉了。但 grep 返回 1 只是表示「没找到」,不是真报错。

What Should Happen?

parallel Bash calls get cancelled when grep returns exit code 1

Error Messages/Logs

Steps to Reproduce

parallel Bash calls get cancelled when grep returns exit code 1

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.126

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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