uutils/sed

POSIX mode incorrectly rejects i\(text) format

Open

#252 aperta il 11 gen 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (23 fork)github user discovery
good first issue

Metriche repository

Star
 (91 star)
Metriche merge PR
 (Merge medio 6g 9h) (25 PR mergiate in 30 g)

Descrizione

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

Guida contributor