Repository navigation
audit(713): nested-context inheritance probes (24 cases, 0 divergences) - #770
Merged
Merged
Conversation
caomengxuan666
force-pushed
the
audit/713-nested-context-probes
branch
from
October 17, 2026 07:52
dbb0ecd to
5653d8b
Compare
SpookyWaste
pushed a commit
to SpookyWaste/rubash
that referenced
this pull request
Nov 12, 2026
The live host<->engine layering section credited reedline as the host's editor. niubash switched to ruline (niu PR unixwin#770, pinned on niu master); the credit now reads "ruline (GNU readline compatibility layer)".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes the measurement half of rubash#713 (third axis: what a nested context inherits and owns).
scripts/audit/nested-context-probes.pyruns 24 probes over( )/$( )/ pipeline stage / background job × { fd table, traps (visibility, EXIT, ERR plain vsset -E, RETURN, ignored signals), exit codes (subshell, command substitution,pipefail,wait), diagnostic routing (redirected, closed, inside$( ), through a pipe), variable isolation }. Each case runs from its own file with stdout, stderr and exit status compared separately against GNU bash 5.3 (WSL).Result: 0 divergences. Two harness traps were found and avoided while building it, both worth recording:
wsl bash -lc "bash -c '…'"re-joins the argument list, strips the single quotes and lets the outer shell interpret;— it fabricates$?/$xdivergences (I hit 9 of them, all artifacts; my first run re-reported them as findings before the harness was fixed).wslpath -aarrives asD:repodirfile(no separators) and comes back unchanged; normalize to forward slashes first. All three traps made the very first runs report 24/24 "divergences" that were pure harness noise.The ownership doc's row F is updated with this measurement. The interesting consequence: for the standard shapes this axis is already owned — the documented recurrence in this family (
#719fixing#702, then#720filing four residuals hours later) lives in the attribution layer (whichErr-returning command owns the last condition's status, and the trap reset call sites), which is exactly what P1 of the ownership plan targets.Not covered here (deliberately, they need their own triggers): nested subshells as the first body command, process substitution, runtime
execrebinding, and diagnostic ownership under redirection — the first three are #720's residuals, the last is P2.