Skip to content

incorrectly rejects -E and -r used together #250

Closed

Description

@sylvestre

Rust (incorrect - returns error)

  $ echo "test" | cargo run --quiet -- -E -r -e 'p'
  # Error: the argument '--regexp-extended' cannot be used multiple times
  # Exit code: 1

GNU (correct - accepts both flags)

  $ echo "test" | /usr/bin/sed -E -r -e 'p'
  # Output:
  # test
  # test
  # Exit code: 0

Bug Found by Fuzzer

Activity

  1. LoukasPap commented on Jan 23, 2026

    @LoukasPap
    Contributor

    Hello, I'll hop into it 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