Skip to content

eval parse-error abort model: #318 killed the rest of posix scripts after command eval '( ' (errors.snap CI red at b406f7f8) #334

Closed

Description

@caomengxuan666

Activity

  1. added
    bug
    gnu-baseline
    on Sep 29, 2026
  2. caomengxuan666 commented on Sep 29, 2026

    @caomengxuan666
    MemberAuthor

    Closed as the tracking duplicate of the fixed regression: the repair landed in master aaa1d29 (wt17/snaprec, cherry-picked from ea73fc1e) with the full GNU three-layer abort model, 35/35 probe matrix byte-identical to WSL GNU 5.3.0, errors.snap passing on committed bytes (zero re-record), CI green (run 36613031871, 6/6 jobs). The residuals noted in the body (errors8.sub ok5-8, four command-builtin posix abort owners; let/local diagnostic newline joins) remain recorded here for the next batch's pick-up: #334

  3. caomengxuan666 commented on Sep 30, 2026

    @caomengxuan666
    MemberAuthor

    ok5-ok8 closed by wt18/misc17 (a3ec9da9, master 9faaead): GNU execute_cmd.c:4657-4666 - builtin_is_special is only set on dispatch paths WITHOUT CMD_NO_FUNCTIONS; command re-dispatch (:4723 sets the flag) NEVER qualifies ("we don't want to exit the shell if a special builtin executed with command builtin fails"), so special_builtin_failed (:4888) never sets and the posix exit (:1004-1017) never triggers. One invariant, not per-symptom: command_dispatch fatal checks now gate on command_builtin_depth == 0 (the executing_command_builtin port, :4731-4735, established for #333), and command_no_alias clears special_builtin_failed after the re-dispatch returns so an inner setting cannot leak to the outer check. Also landed per general.c: shift out-of-range diagnostics print under posix (posix_initialize sets print_shift_error; the failure stays EXECUTION_FAILURE, never fatal). Full errors8.sub sequence byte-identical (rc 0); 14-form bare/command matrix (four pre-existing bare-form gaps recorded, not touched); errors.snap re-recorded with exactly the four ok markers (delta verified). 11 regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggnu-baseline

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions