uutils/sed

handles multiple exchange commands differently from GNU (pattern space truncation)

开放

#253 创建于 2026年1月11日

 (1 条评论) (0 个反应) (0 位负责人)Rust (23 个派生)github user discovery
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

贡献者指南