8216ee321f
macOS /bin/sh = bash --posix:设 BASH_VERSION 但禁用进程替换,line 56 的 2> >(grep ...) 在解析时即报 syntax error near unexpected token '>'。守卫检测 SHELLOPTS 含 posix 或非 bash 时 exec bash 重执行,honor 脚本文档里的 'sh scripts/local_test.sh' 用法。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>