Repository navigation
Advance Bash upstream compatibility progress - #4
Merged
Merged
Conversation
arookieofc
pushed a commit
that referenced
this pull request
Jul 12, 2026
* Harden upstream tests and migrate command lookup basics * Harden Bash upstream test runner safety * Migrate Bash word expansion basics * Migrate Bash alias and source primitives * Migrate Bash heredoc and script stream basics * Migrate Bash compound alias constructs * Migrate Bash alias reparse and quoting cases * Migrate Bash alias reserved-word cases * Migrate Bash residual quote removal for echo * Migrate Bash alias substitution edge cases * Migrate Bash builtin stderr redirection * Migrate Bash alias diagnostics and upstream comparison * Migrate Bash break and continue loops * Migrate early Bash builtins behavior * Migrate Bash source pipe and heredoc cases * Move source execution into Bash builtin module * Expand Bash source and job control parsing * Advance bash builtins upstream tests * Advance bash directory stack tests * Advance bash shopt upstream tests * Advance bash type upstream tests * Advance bash strip upstream tests * Advance bash invert upstream tests * Advance bash input upstream tests * Advance bash attr upstream tests * Advance bash tilde upstream tests * Advance bash tilde upstream coverage * Update lexer quote marker expectation * Update parser quote marker expectation * Advance bash appendop upstream coverage
caomengxuan666
added a commit
that referenced
this pull request
Sep 10, 2026
history.tests 284 -> 243 drift lines vs GNU 5.3.0. Ported from
builtins/history.def:190-262 + bashhist.c bash_delete_history_range +
readline remove_history_range:
- separator scan starts after a leading '-': -2-4 = start -2, end 4
- negative numbers count back from the list end (-1 = last entry)
- positive numbers are displayed numbers, offset by history_base
- inclusive range deletion; first > last fails silently (rc=1, no
message) per remove_history_range
- out-of-range reports "history: {side}: history position out of
range" where side is the offending END's text -- the C code NUL
terminates the '-' in place, so start errors print the start text
and end errors the end text
- valid_number is strtoimax base 10 (general.c:248): 0xaf is INVALID
and reports the whole argument with the separator restored
Both history backends updated (session history_exec.rs + provider
job_builtins.rs). Probe: target/forms/hist-d.sh -- H1-H5 byte-identical
to GNU 5.3.0 modulo the stderr shell prefix (ledger-noted).
Regression: executor_tests failset identical (114); array.tests drift
unchanged at 436 lines. Docs: census #4/#5 ledger entry -- assoc key
ORDER verified identical across GNU 5.2/5.3/rubash (census #4 premise
refuted for basic shapes); the real assoc.tests gap is compound-
assignment key quoting/splitting (323 lines, next batch).
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.
Summary
Upstream test evidence
Notes