Skip to content

handles multiple exchange commands differently from GNU (pattern space truncation) #253

Open

Description

@sylvestre

Rust (incorrect - pattern space truncated)

  $ echo -e "line1\nline2\nline3" | cargo run -p sed -- '2x;3x'
  line1
  line2
  # Exit code: 0

GNU (correct)

$ echo -e "line1\nline2\nline3" | /usr/bin/sed '2x;3x'
 line1

 line2
 # Exit code: 0

Activity

  1. LoukasPap commented on Jan 12, 2026

    @LoukasPap
    Contributor

    I'll tackle this if it's alright.

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

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions