Repository navigation
Conversation
…rows Five rows redhat-et#720's scope.sh did not cover, each checked against bash 5.3: SC_BG (`local X &`) and SC_GLOB2 (a write after `declare -g`) absent; SC_GRP (a { } group's local), SC_DECL (plain declare after local) and SC_OUTER (`local X; ( local X ); X=2`) stay requirements. SC_OUTER is the only row that pins the std::max in shellNarrowBoundWrites: with the fold switched to "latest local wins" it is the one gate row that goes red, every other scope row still passes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Follow-up to #720. The review asked for five fixture rows that
scope.shdidn't cover, and they didn't make it in before the merge. This adds them totest/bashenvfix/scope.shand section 14 oftest/bashenvcheck.sh. Test only, no code change, so no changelog fragment.local X=1 & X=2&makes thelocala child shell)local X; declare -g X=1; X=local{ local X; }; X=2local X; ( local X ); X=2local X; declare X=1Each expectation was checked against bash 5.3.
SC_OUTER is the one that matters most. I switched the fold in
shellNarrowBoundWritesto "latestlocalwins" (bindEnd = std::min( Pos{…}, functionEnd )), and SC_OUTER was the only row in the gate that went red. Every other scope row, sc_twice included, still passed. Without it thestd::maxhas no test.Verified on 6c018f6 (plain dev build):
bashenvcheckALL PASS,manifestcheckPASS.🤖 Generated with Claude Code
Summary by CodeRabbit