Skip to content

POSIX mode incorrectly accepts incomplete i\ command #251

Closed

Description

@sylvestre

Rust (incorrect - accepts empty command)

  $ echo "test" | cargo run --quiet -- --posix -e 'i\'
  # Output: test
  # Exit code: 0

GNU (correct - rejects incomplete command)

  $ echo "test" | /usr/bin/sed --posix -e 'i\'
  # Error: /usr/bin/sed: -e expression n°1, caractère 2: commande incomplète
  # Exit code: 1

Bug Found by Fuzzer

Activity

  1. LoukasPap commented on Jan 14, 2026

    @LoukasPap
    Contributor

    I'll check it out!

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