Skip to content

fix: Wave4a P2 batch - redirect ambiguity gate, backtick diagnostic window, command-position paren, compgen tilde (#514 #515 #516 #523) - #576

Merged
caomengxuan666 merged 3 commits into
masterfrom
fix/wave4a-p2-six
Oct 12, 2026
Merged

caomengxuan666 merged 3 commits into
masterfrom
fix/wave4a-p2-six

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Six P2s from the huck-corpus triage (#514/#515/#516/#523), each with vendored-bash file:line anchors, WSL GNU 5.3.0 byte-comparison, and RED-then-GREEN regressions (19 locks verified against fresh master). Plus two mine-only regressions caught by full-suite comparison ((1+(2 dparen root gate, dollar-double-paren double-step) fixed in the same batch. Failure-set parity: mine-only = empty vs fresh master.

…n arith body parens and dollar-group double-advance

- unclosed_comsub_eof_shape: a command-position (( dparen root parses its
  body as arithmetic (parse.y:3726-3733 read_token -> parse_dparen ->
  parse_arith_cmd), so a nested '(' like the 1+( of '((1+(2' is arithmetic
  grouping, never a yacc token error; the whole shape defers to the
  generic close-char scan and the q1 family reports its P_ARITH EOF
  wording again ('unexpected EOF while looking for matching ')''), rc 2.
  'echo ((' has no command-position root and keeps the #516 token-error
  class. (issue390 q1_arith_eof_names_close_paren_at_open_line_rc2)
- dollar_double_paren_is_arithmetic: dollar_word_group_len returns the
  index PAST the group closer, so the '$'-group arm must resume on it
  directly; the loop-bottom scan += 1 skipped one character too many and
  a ${name} hugging the closing '))' swallowed the first ')' of the pair
  - $((10#${OMB_VERSINFO[0]})) was misread as a command substitution
  ('10#1: command not found', printf %d -> 0). (pb10k
  array_literal_elements_survive_a_live_digit_alias)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant