Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shayelkin
Copy link
Contributor

@shayelkin shayelkin commented Nov 6, 2025

(I'd create an issue, but I think this is really too much of a nit).

When running uudoc manpage <utility> for any utility that isn't coreutils, the resulting manpage lists the command name as uudoc.

This is because uu_app() functions sets Command::name to uucore::util_name(), which unless we've set utility_is_second_arg first, would be the executable name rather than the utility name.

(Head of) output of uudoc manpage ls before this change:

.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH uudoc 1  "uudoc (uutils coreutils) 0.3.0"
.SH NAME
uudoc \- List directory contents.
Ignore files and directories starting with a \*(Aq.\*(Aq by default
.SH SYNOPSIS
\fBuudoc\fR

And after:

.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH ls 1  "ls (uutils coreutils) 0.3.0"
.SH NAME
ls \- List directory contents.
Ignore files and directories starting with a \*(Aq.\*(Aq by default
.SH SYNOPSIS
\fBls\fR 

When running `uudoc manpage <utility>` for any utility that isn't coreutils,
the resulting manpage lists the command name as `uudoc`.

This is because uu_app() functions sets Command::name to uucore::util_name(),
which unless we've set utility_is_second_arg first, would be the executable
name rather than the utility name.
@github-actions
Copy link

github-actions bot commented Nov 6, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@shayelkin shayelkin changed the title Fix: uudoc manpage for individual utilities has wrong name (nit) uudoc: fix manpage for individual utilities has wrong name (nit) Nov 11, 2025
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/overlay-headers (fails in this run but passes in the 'main' branch)

@oech3
Copy link
Contributor

oech3 commented Nov 19, 2025

A failed test should pass just by updating (pulling main).

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/misc/tee (passes in this run but fails in the 'main' branch)

@shayelkin
Copy link
Contributor Author

@oech3 yes, I was just too lazy to merge main back as it seems this is far back in the review queue (understandable! this is really not too important fix)

@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/overlay-headers (passes in this run but fails in the 'main' branch)

@oech3
Copy link
Contributor

oech3 commented Dec 7, 2025

@sylvestre Would you fix this manpage issue before releasing 0.5.0?

@sylvestre sylvestre merged commit a7c9d03 into uutils:main Dec 7, 2025
128 checks passed
@oech3
Copy link
Contributor

oech3 commented Dec 7, 2025

Thankyou

naoNao89 pushed a commit to naoNao89/coreutils that referenced this pull request Dec 14, 2025
uudoc: fix manpage for individual utilities has wrong name (nit)
romanstingler pushed a commit to romanstingler/coreutils that referenced this pull request Dec 14, 2025
uudoc: fix manpage for individual utilities has wrong name (nit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants