Repository navigation
WIP: docs(help): P2a minor-group description alignment (stat/stty/man/top/numfmt/dd/date/time) - #1470
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1127
Refs #1462
What this is
P2a of the #1127 help-coverage plan: align the minor group's help
descriptions with the oracle tools' own wording density. Wording
and option facts are taken from the oracle sources
(
~/workspace/winuxcmd-audit/src: coreutils-9.4 for stat/stty/numfmt/dd/date, procps-v4.0.4 for top, man-db man.1 for man, GNU time
man page for time) — not from the coverage JSON, which only indexes
what is thin.
Hard rule applied throughout: help never promises an unimplemented
option. Every expanded description was verified against the
applet's own option parsing / implementation first; GNU clauses that
describe behavior this port does not have were deliberately omitted
(see per-applet notes).
Per-applet changes
-ugains GNU's "print or set"(date.c:178);
-fbecomes GNU's "like --date; once for each lineof DATEFILE" (date.c:150);
-Iand--rfc-3339gain the fullFMT value lists + examples (date.c:154-158, 168-172; value sets
verified in
iso_format_for/rfc3339_format_for);-Rgainsthe RFC 5322 example (date.c:164);
--debugdubious→questionable(date.c:147). Not added: %g/%G/%k/%l/%U/%V/%W/%::z sequences and
the
%+flag — none are implemented in the formatter, so thelong description correctly keeps omitting them.
--from/--to/--round/--padding/--header/--field/--format/--grouping/--from-unit/--to-unittake numfmt.c:911-956 wording.--invalidnow lists fail (numfmt.c:934) — it was alreadyaccepted by the validator (numfmt.cpp:684) but undocumented.
--suffixtakes only GNU's first clause: the "accept SUFFIX ininput numbers" half is not implemented here and stays
undocumented.
--padmarked as the--paddingalias it is.-L"follow links" (stat.c:1763);-cgains "; output a newline after each use of FORMAT"(stat.c:1771);
--printfgains the no-mandatory-newline clause(stat.c:1773-1775; both verified at stat.cpp:1154-1209);
--cachedtakes GNU's first clause plus the existing honestWindows qualifier (stat.c:1767).
512)" and bs gains "overrides ibs and obs" (dd.c:549-556);
conv/iflag/oflag take dd.c's exact phrases;
statusexpands tothe LEVEL text already used in the long description, keeping the
honest progress wording (accepted; final statistics only — GNU's
periodic-progress clause not claimed). The unimplemented conv
symbols (ascii/ebcdic/ibm/block/unblock/lcase/ucase/swab) stay
undocumented.
(the parser accepts only this port's [EXT] long names; renaming/
adding them is P2b implementation work). The shared short options
take the fuller wording already used by top's own custom help,
which tracks procps (top_nls.c:417-436): -b, -d (integer seconds,
as implemented), -n, -p, -u/-U, -s ("run with secure mode
restrictions (disables kill/renice)", top.cpp:888), -H, -o
(with the verified field set CPU|MEM|TIME|PID|NAME,
top.cpp:847-855), -w, --rows, -v, --help.
-T/-H take man-db's man.1 wording, keeping the [DIFFERS]
availability notes (man -P is accepted but the built-in pager is
always used — now said on the option line too). man-db's other
modes stay in the [DIFFERS] prose list, undocumented as options.
-pbecomes "use theportable output format (POSIX 1003.2 style...)" (GNU time man
page, -p/--portability); long description gains two verified
facts: three-decimal seconds with the default format's trailing
's' (
format_seconds), and the exit-status contract(child status / 127 / 126 / 125 — GNU time EXIT STATUS, mirrored
by time.cpp's run paths). GNU time's help is mostly the
-fformat list;
-fis not implemented, so that text is notimported and time's density ceiling is structural.
option lines are already byte-identical to stty.c:557-559 and the
settings list tracks stty.c's mode table, restructured honestly
into effective vs accepted-but-ignored groups. Density is already
168/160. Churning it would add nothing.
i18n
English strings changed ⇒ 36 catalog keys changed (extract diff
before/after, zero keys outside this scope). Companion PR in
unixwin/winuxcmd-i18n updates the zh-CN translations (34 values;
dd iflag/oflag zh text was already equivalent) and bumps VERSION
0.6.24 → 0.6.25. It merges after this PR.
Standing note:
i18n_batch.py validatereports a large keymismatch that exists identically before this change (legacy.* hash
churn + unrelated applets) — pre-existing drift, not introduced
here; the 36 keys above are all present and consistent.
CI to watch
build is possible, edits are string-literal-only inside
OPTION()/REGISTER_COMMAND arguments and were re-parsed by the
i18n extractor as a structural check.
by grep over tests/differential/corpus), so no case flips are
expected; the standing regressions/70-env noise is unrelated.
Draft until CI is green; Refs-only, does not close #1127 or #1462.