Skip to content

Missing newline in output with -e p #143

Closed

Description

@cakebaker

While trying out the fuzzer I noticed that GNU sed adds a newline in the output if the input doesn't end with a newline. Our implementation doesn't.

$ printf "foo" | sed -e p
foo
foo$

$ printf "foo" | cargo run -q sed -e p
foofoo$

Activity

  1. added a commit that references this issue on Jan 11, 2026
  2. added a commit that references this issue on Jan 28, 2026
  3. XNxa commented on Sep 17, 2026

    @XNxa

    This issue should be closed. Fixed by PR #378

  4. sylvestre commented on Sep 17, 2026

    @sylvestre
    SponsorContributor

    thanks

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions