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

numfmt: a tab between fields is kept, GNU prints a space

オープン 初心者向け
#15,552 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@fixfon がすでに取り組んでいます。

2026年10月20日 から。

  • #15555 @fixfon による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

まず numfmt の実装とそのテストを探してください。issue には特定のファイルや失敗しているテストは示されていません。デフォルトの空白区切りがフィールド間のタブをどのように扱うかを、GNU の出力と比較してください。非数値フィールドと先頭の空白も含めて確認します。フィールド間のタブがスペースとして出力され、先頭の空白の数と列挙されたオプションの動作が引き続き正しければ完了です。

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

説明

With the default (whitespace) field delimiter, GNU numfmt writes every blank between fields as a space. uutils copies the original character, so a tab stays a tab.

$ printf '1\t2\n' | numfmt | od -c          # GNU coreutils 9.12 (and 9.5)
0000000   1       2  \n
$ printf '1\t2\n' | coreutils numfmt | od -c
0000000   1  \t   2  \n

It doesn't depend on the other options: same with --to=si, --invalid=warn / ignore, and on lines whose fields aren't numbers (printf 'a\tb\n' | numfmt --invalid=ignore). Leading blanks keep their count in both (printf ' 1\t 2000\n' | numfmt → GNU 1 2000, uutils 1\t 2000).

Notes

uutils 0.12.0 and main @ 2fb77e8 vs GNU coreutils 9.12 built from source (Ubuntu's 9.5 behaves the same), Linux aarch64, LC_ALL=C. Found by a differential run with generated input (a tab inside a generated text line), not by flags: GNU's tests/numfmt/numfmt.pl has no case with a tab under the default delimiter, so the GNU test suite doesn't cover it.

De-dup: no issue or PR found for "numfmt tab", "numfmt whitespace", "numfmt delimiter", "numfmt invalid warn" (closest: #11935, scientific notation under --invalid, closed). Not in the #15254 flagdiff list (its numfmt rows are about option values: --from=a, --invalid=a, --from-unit=+5).

主要言語
Rust
スター
24.3k
フォーク
2.1k
平均マージ
2日 28分
マージ済み PR(30日)
313

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

uutils/coreutils のほかの issue

uutils/coreutils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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