uutils/sed
handles multiple exchange commands differently from GNU (pattern space truncation)
开放
#253 创建于 2026年1月11日
good first issue
仓库指标
- 星标
- (91 个星标)
- PR 合并指标
- (平均合并 6天 9小时) (30 天内合并 25 个 PR)
描述
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