uutils/sed

POSIX mode incorrectly rejects i\(text) format

Open

#252 geöffnet am 11. Jan. 2026

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (23 Forks)github user discovery
good first issue

Repository-Metriken

Stars
 (91 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 9h) (25 gemergte PRs in 30 T)

Beschreibung

Rust (incorrect - returns error)

$ echo "test" | cargo run --quiet -- -n --posix -e 'i\(text'
 # Error: sed: <script argument 1>:1:3: error: extra characters after \ at the end of `i' command
 # Exit code: 1

GNU (correct)

  $ echo "test" | /usr/bin/sed -n --posix -e 'i\(text'
  # Output: (text
  # Exit code: 0

Bug Found by Fuzzer

Contributor Guide