uutils/sed
handles multiple exchange commands differently from GNU (pattern space truncation)
Open
#253 opened on Jan 11, 2026
good first issue
Repository metrics
- Stars
- (91 stars)
- PR merge metrics
- (Avg merge 6d 9h) (25 merged PRs in 30d)
Description
Rust (incorrect - pattern space truncated)
$ echo -e "line1\nline2\nline3" | cargo run -p sed -- '2x;3x'
line1
line2
# Exit code: 0
GNU (correct)
$ echo -e "line1\nline2\nline3" | /usr/bin/sed '2x;3x'
line1
line2
# Exit code: 0