Repository navigation
test(parser): pin #424 redirect-target rejection and procsub input-side regressions - #464
Merged
Merged
Conversation
…de regressions Hardens the wt63 #424 resolution with the exact shapes from the issue report: the standalone `>?(zz)out' redirect, the canonical `echo hi >?(zz)out' one-liner, and the `>>'/`2>' operator family all abort with GNU's `syntax error near unexpected token `(''' (rc=2) without creating a literal `?(zz)out' file, while the input-side `<(' process substitution keeps working with the extglob gate on and off. All shapes byte-match the merged GNU 5.3.0 verified behavior. closes #424
This was referenced Oct 10, 2026
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
#424's functional resolution already landed on master via the wt63 lane (278a855, byte-verified against WSL GNU Bash 5.3.0): with the extglob parse gate closed, an unmatched extglob redirect target strands the bare
(' and the parser reports GNU'ssyntax error near unexpected token `(''' with status 2 — no literal file is ever created; with the gate open, a no-match pattern follows GNU subst.c expand_words_no_vars and is kept as the dequoted literal filename. The issue stayed open without coverage for several of the report's exact shapes, so this PR pins them as regressions.New regression coverage (tests/issue424_redirect_extglob_interactive_parse.rs)
>?(zz)outredirect: rc=2, GNU diagnostic, no literal?(zz)outfileecho hi >?(zz)outone-liner: rc=2, offending line echoed, nothing after the abort runs, no file>>?(zz)outand2>?(zz)out: same WORD-operand grammar, same rejectionecho hi <(zz)process substitution keeps working with the gate on and off (zz: command not found, hi /dev/fd/N)Test plan
closes #424