Skip to content

diagnostic line number counts the logical line, not the physical line after a backslash-newline continuation #411

Closed

Description

@caomengxuan666

Summary

Diagnostics report the logical line (1) where a backslash-newline continuation splits the command; GNU reports the physical line (2, 5).

Reproducer (probe wt37-374 K020; also the line-number part of K100)

readonly RO=1; \
RO=2; echo after > OUT

GNU stderr: probe.sh: line 2: RO: readonly variable. rubash: probe.sh: line 1: ....

Wording-only divergence (rc and message text identical).

GNU owner

parse.y line-number bookkeeping (input_line_number at token read time).

Artifacts

target/issue-suites/results/wt37-374/run/K020.* K100.*

Activity

  1. added
    bug
    on Oct 2, 2026
  2. added 2 commits that reference this issue on Oct 2, 2026
  3. caomengxuan666 commented on Oct 3, 2026

    @caomengxuan666
    MemberAuthor

    Landed on master through the wt38 pool recovery waves (CI green); see the issueNNN regression suite and lane matrices on the ticket.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions