Repository navigation
feat(startup): --debug arms extdebug (niu extension) - #1192
Merged
Merged
Conversation
GNU shell.c:255's --debug writes the `debugging` variable that NO code in bash ever reads (write-only static, shell.c:218; zero reads repo-wide in the vendored 5.3 tree) — the flag carries zero observable GNU behavior, so repurposing it conflicts with nothing. niu semantics: extdebug armed from the first command — the DEBUG-trap substrate a script debugger needs when it cannot edit the script, and the same gate predicate rubash#497's native debugger builds on; that work upgrades the meaning in place (a native debugger wants extdebug anyway). Follows #1191, which separated --debug from --debugger and documented the name as reserved.
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.
Follow-up to #1191, per owner decision: repurpose
--debug.GNU shell.c:255's
--debugwrites thedebuggingvariable that no code in bash ever reads (write-only static, shell.c:218; zero reads across the vendored 5.3 tree — variables.c/trap.c/shopt.def all zero). A flag with zero observable GNU behavior cannot conflict with anything, so niu semantics: extdebug armed from the first command — the DEBUG-trap substrate a script debugger needs when it cannot edit the script, and the same gate predicate #497's native debugger builds on; that work upgrades this meaning in place (a native debugger wants extdebug armed anyway).--debugger(bashdb starter mode, #1191) is unchanged and orthogonal.Tests:
debug_flag_arms_extdebugflips the vestigial no-op expectation to extdebug-ON; parse-level split tests unchanged; lib 789 ✓, fmt clean.