Skip to content

handles exchange command (x) with empty hold space differently from GNU (missing newline) #254

@sylvestre

Description

@sylvestre

Rust (incorrect - missing newline)

  $ printf "a\nb\nc" | cargo run -p sed -- '2x'
  a
  c
  # Exit code: 0

GNU (correct)

  $ printf "a\nb\nc" | /usr/bin/sed '2x'
  a

  c
  # Exit code: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions