Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

wc: unexpected stdout diff for multi-file output padding

オープン
#252 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go
領域
cli

調査の方向性

まず、rshell の wc コマンドのエントリポイントと、複数ファイルの出力を対象とする既存のテストを見つけます。複数ファイルの入力で不一致を再現し、stdout を GNU wc と比較します。その際、ファイル名と合計行が出力される場合のカウント列の幅に注目します。数値カウント、順序、バイト単位のパディングが GNU の出力と一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

QA

Summary

QA comparison found that rshell's wc output column padding differs from GNU wc for multi-file input. The numeric counts and file ordering match, but the stdout differs byte-for-byte because GNU pads count columns more widely.

Sanitized example

Command shape:

find <directory> -type f | sort | xargs wc -l

rshell stdout excerpt:

 19 <path>
 19 <path>
 19 <path>
 91 <path>
122 <path>
114 <path>
 69 <path>
 19 <path>
 27 <path>
 20 <path>
 27 <path>
 22 <path>
 27 <path>
 19 <path>
 27 <path>
 18 <path>
 27 <path>
 19 <path>
 27 <path>
 21 <path>
 27 <path>
 21 <path>
 27 <path>
 19 <path>

GNU/oracle stdout excerpt:

   19 <path>
   19 <path>
   19 <path>
   91 <path>
  122 <path>
  114 <path>
   69 <path>
   19 <path>
   27 <path>
   20 <path>
   27 <path>
   22 <path>
   27 <path>
   19 <path>
   27 <path>
   18 <path>
   27 <path>
   19 <path>
   27 <path>
   21 <path>
   27 <path>
   21 <path>
   27 <path>

Expected

wc should match GNU wc output formatting for multi-file counts, including the leading column padding used when filenames and a total line are printed.

Notes

This report is sanitized: it omits local artifact paths, run identifiers, and scenario-specific metadata. The finding was deduplicated across the QA run before filing.

主要言語
Go
スター
31
フォーク
3
平均マージ
2日 9時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataDog/rshell のほかの issue

DataDog/rshell の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。